bloginamatrix.xyz/astro.config.mjs

33 lines
938 B
JavaScript
Raw Permalink Normal View History

2024-01-11 11:44:21 -05:00
import { defineConfig } from 'astro/config';
2024-01-11 13:16:24 -05:00
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
2024-01-11 17:12:21 -05:00
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
2024-01-11 17:42:43 -05:00
import rehypeMermaid from 'rehype-mermaid';
import remarkRehype from 'remark-rehype';
2024-01-16 15:57:25 -05:00
import compress from 'vite-plugin-compression';
2024-01-11 13:16:24 -05:00
export default defineConfig({
site: 'https://bloginamatrix.xyz',
2024-01-11 17:12:21 -05:00
integrations: [
mdx({
2024-01-15 23:50:09 -05:00
gfm: true,
2024-01-11 17:12:21 -05:00
extendMarkdownConfig: true,
optimize: true,
2024-01-11 17:42:43 -05:00
remarkPlugins: [remarkMath, remarkRehype],
2024-01-11 17:12:21 -05:00
rehypePlugins: [rehypeKatex, rehypeMermaid]
}),
sitemap()],
markdown: {
gfm: true,
2024-01-15 23:50:09 -05:00
extendMarkdownConfig: true,
optimize: true,
2024-01-11 17:42:43 -05:00
remarkPlugins: [remarkMath, remarkRehype],
2024-01-11 17:12:21 -05:00
rehypePlugins: [rehypeKatex, rehypeMermaid],
2024-01-16 15:57:25 -05:00
},
vite: {
plugins: [compress({ ext: '.br', algorithm: 'brotliCompress' }), compress({ ext: '.gz', algorithm: 'gzip' })],
},
2024-01-11 17:12:21 -05:00
});