Files
bztmon-site/astro.config.mjs
T
jwright 7542ae2665
build-and-deploy / build (push) Failing after 12m30s
turn off smartypants so the rendered pages stay ascii
2026-08-17 23:23:31 +10:00

33 lines
1.0 KiB
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: {
// Keep rendered prose ASCII: no curly-quote/dash typesetting at build.
smartypants: false,
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()],
},
});