31 lines
926 B
JavaScript
31 lines
926 B
JavaScript
// @ts-check
|
|
import { defineConfig } from "astro/config";
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: "https://www.bztmon.com",
|
|
// Always emit/expect trailing slashes so internal links hit the final URL directly
|
|
// (no nginx dir-redirect → no stray :8080 / cached 301s).
|
|
trailingSlash: "always",
|
|
integrations: [sitemap()],
|
|
build: {
|
|
// Keep CSS in external files (no inlined <style> blocks) — friendlier to a strict CSP.
|
|
inlineStylesheets: "never",
|
|
},
|
|
markdown: {
|
|
shikiConfig: {
|
|
// Dual theme via CSS variables → colours switch with our data-theme, no
|
|
// hard-coded per-token colours baked to one theme.
|
|
themes: { light: "github-light", dark: "github-dark" },
|
|
defaultColor: false,
|
|
wrap: true,
|
|
},
|
|
},
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
});
|