You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
736 B
JavaScript
43 lines
736 B
JavaScript
import { defineConfig } from 'astro/config'
|
|
import preact from '@astrojs/preact'
|
|
|
|
import mdx from '@astrojs/mdx'
|
|
import remarkMath from 'remark-math'
|
|
|
|
import yaml from '@rollup/plugin-yaml'
|
|
|
|
import node from '@astrojs/node'
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
vite: {
|
|
plugins: [yaml()],
|
|
},
|
|
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
|
|
markdown: {
|
|
remarkPlugins: [remarkMath],
|
|
shikiConfig: {
|
|
theme: 'github-light',
|
|
},
|
|
},
|
|
|
|
integrations: [
|
|
preact({
|
|
compat: true,
|
|
}),
|
|
mdx({
|
|
remarkPlugins: [remarkMath],
|
|
}),
|
|
],
|
|
|
|
output: 'server',
|
|
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
})
|