dc09.ru/astro.config.mjs

36 lines
766 B
JavaScript
Raw Normal View History

import { defineConfig } from 'astro/config';
import compress from "astro-compress";
2023-06-19 21:32:05 +04:00
import remarkPostMeta from './remark-post-meta.mjs';
2023-06-19 21:32:05 +04:00
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
2023-06-19 21:32:05 +04:00
import rehypeFigure from 'rehype-figure';
export default defineConfig({
2023-06-18 18:10:29 +04:00
integrations: [compress()],
build: {
format: "directory"
},
markdown: {
syntaxHighlight: "shiki",
remarkPlugins: [
remarkPostMeta,
],
rehypePlugins: [
rehypeSlug,
rehypeHeadingIds,
[
rehypeAutolinkHeadings,
{ behavior: "append" },
],
2023-06-19 21:32:05 +04:00
rehypeFigure,
],
2023-06-18 18:10:29 +04:00
},
2023-07-23 18:37:30 +04:00
redirects: {
"/blog": "/blog/page1",
2023-07-23 18:37:30 +04:00
}
});