jb-website/astro.config.mjs
2026-06-01 19:35:56 +10:00

23 lines
809 B
JavaScript

import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
// joshbairstow.com is the apex. Subdomains (blog., art., code.) are served from this
// same build via the reverse proxy mapping host -> path prefix (see docs/planning.md §6.2).
// `site` here drives canonical URLs in generated metadata and the sitemap.
export default defineConfig({
site: "https://joshbairstow.com",
integrations: [react(), mdx(), sitemap()],
output: "static",
build: {
format: "directory",
},
vite: {
server: {
// Allow the dev server to be hit by the local subdomain hostnames if you alias
// them in /etc/hosts. Keeps testing the cross-subdomain link behavior easy.
host: true,
},
},
});