import { defineConfig } from 'astro/config'
import preact from '@astrojs/preact'

import mdx from '@astrojs/mdx'

import yaml from '@rollup/plugin-yaml'

// https://astro.build/config
export default defineConfig({
    vite: {
        plugins: [yaml()],
    },
    server: {
        port: 3000,
    },
    markdown: {
        shikiConfig: {
            theme: 'github-light',
        },
    },
    integrations: [preact(), mdx()],
    output: 'static',
})