1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-30 21:52:05 +02:00
blog/.config/astro.config.mjs

29 lines
846 B
JavaScript
Raw Normal View History

2023-08-30 00:37:25 +02:00
import { defineConfig } from 'astro/config'
2023-09-04 12:22:16 +02:00
import remarkLeadParagraph from './src/lib/remark-lead-paragraph.mjs'
import remarkToc from './src/lib/remark-toc.mjs'
2023-08-30 00:37:25 +02:00
import react from '@astrojs/react'
// https://astro.build/config
2023-09-05 00:31:37 +02:00
/** @type {import('astro/config').AstroUserConfig} */
2023-08-30 00:09:47 +02:00
export default defineConfig({
site: 'https://kremalicious.com',
2023-09-05 00:31:37 +02:00
output: 'static',
markdown: {
2023-09-04 12:22:16 +02:00
remarkPlugins: [remarkLeadParagraph, remarkToc],
2023-09-03 14:05:21 +02:00
shikiConfig: {
// https://github.com/shikijs/shiki/blob/main/docs/themes.md
theme: 'github-dark-dimmed',
langs: [],
wrap: true
2023-09-04 12:22:16 +02:00
}
},
2023-09-04 21:59:08 +02:00
vite: {
resolve: {
// for making content -> src/content symlink work
// https://www.eliostruyf.com/symlink-content-astro-portability/#fix-the-content-issues
preserveSymlinks: true
}
},
integrations: [react()]
2023-08-30 00:37:25 +02:00
})