mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2024-12-22 08:06:29 +00:00
23 lines
723 B
JavaScript
23 lines
723 B
JavaScript
// @ts-check
|
|
import { rehypeHeadingIds } from '@astrojs/markdown-remark'
|
|
import mdx from '@astrojs/mdx'
|
|
import sitemap from '@astrojs/sitemap'
|
|
import svelte from '@astrojs/svelte'
|
|
import { defineConfig } from 'astro/config'
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
|
|
import Icons from 'unplugin-icons/vite'
|
|
import { remarkReadingTime } from './readingTime'
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://example.com',
|
|
integrations: [mdx(), sitemap(), svelte()],
|
|
markdown: {
|
|
rehypePlugins: [rehypeHeadingIds, [rehypeAutolinkHeadings, { behavior: 'wrap' }]],
|
|
remarkPlugins: [remarkReadingTime],
|
|
},
|
|
vite: {
|
|
plugins: [Icons({ compiler: 'astro' })],
|
|
},
|
|
})
|