14 lines
493 B
JavaScript
14 lines
493 B
JavaScript
import { defineConfig } from "astro/config";
|
|
|
|
// Build writes straight into ../www, which Caddy serves at the apex domain.
|
|
// BASE_DOMAIN is baked at build time (default ulicraft.local).
|
|
export default defineConfig({
|
|
outDir: "../www",
|
|
// Wipe ../www on each build so stale assets don't linger.
|
|
build: { assets: "_assets" },
|
|
vite: {
|
|
// Surface BASE_DOMAIN to the build without the PUBLIC_ prefix dance;
|
|
// index.astro reads it from process.env directly in frontmatter.
|
|
},
|
|
});
|