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'
|
2023-08-29 23:39:28 +02:00
|
|
|
|
|
|
|
// 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({
|
2023-09-03 02:23:54 +02:00
|
|
|
site: 'https://kremalicious.com',
|
2023-09-05 00:31:37 +02:00
|
|
|
output: 'static',
|
2023-09-03 02:23:54 +02:00
|
|
|
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-03 02:23:54 +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
|
|
|
|
}
|
|
|
|
},
|
2023-09-03 02:23:54 +02:00
|
|
|
integrations: [react()]
|
2023-08-30 00:37:25 +02:00
|
|
|
})
|