2025-09-27 15:51:46 -05:00
|
|
|
import react from "@astrojs/react";
|
2025-09-27 15:38:37 -05:00
|
|
|
import { defineConfig } from "astro/config";
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
devToolbar: { enabled: false },
|
|
|
|
|
|
2026-08-01 14:32:25 -05:00
|
|
|
vite: {
|
|
|
|
|
server: { allowedHosts: [] },
|
|
|
|
|
esbuild: { target: "es2022" },
|
2026-11-20 23:23:40 -06:00
|
|
|
build: { cssCodeSplit: false },
|
|
|
|
|
css: {
|
|
|
|
|
modules: {
|
|
|
|
|
// Short hashed class names in production to shrink HTML; the leading _ keeps names that start with a digit valid
|
|
|
|
|
generateScopedName:
|
|
|
|
|
process.env.NODE_ENV === "production"
|
|
|
|
|
? "_[hash:base64:6]"
|
|
|
|
|
: undefined,
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-08-01 14:32:25 -05:00
|
|
|
},
|
|
|
|
|
|
2026-08-05 13:22:33 -05:00
|
|
|
output: "static",
|
2025-09-27 18:32:18 -05:00
|
|
|
site: "https://blitzkit.app",
|
|
|
|
|
outDir: "../../dist/website",
|
2025-09-29 13:30:10 -05:00
|
|
|
prefetch: { defaultStrategy: "hover", prefetchAll: true },
|
2025-09-27 18:37:51 -05:00
|
|
|
|
2026-11-19 17:00:03 -06:00
|
|
|
build: { concurrency: 8, inlineStylesheets: "never" },
|
2025-09-27 17:05:06 -05:00
|
|
|
|
2026-11-20 23:23:40 -06:00
|
|
|
integrations: [react()],
|
2025-09-27 15:38:37 -05:00
|
|
|
});
|