diff --git a/astro.config.mjs b/astro.config.mjs index 03870d1..56b5261 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -44,7 +44,12 @@ export default defineConfig({ // Inline the (small, ~6KB) global stylesheet into each page's instead // of emitting a render-blocking . Pages are SSR'd per request, so there // is no shared-CSS-cache benefit to give up, and FCP/LCP improve. - build: { inlineStylesheets: "always" }, + // inlineStylesheets: small global CSS goes inline (no render-blocking ). + // format "file": prerendered pages emit as `about.html` (served at /about with + // no trailing slash) rather than `about/index.html` (which 307-redirects + // /about -> /about/). This keeps the prerendered URLs identical to the + // existing canonical/sitemap/nav scheme, so no redirect hop is introduced. + build: { inlineStylesheets: "always", format: "file" }, vite: { plugins: [tailwindcss()], resolve: { diff --git a/package-lock.json b/package-lock.json index d31c816..6ded5d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,7 @@ "jose": "^6.2.3", "tailwindcss": "^4.2.1", "tw-animate-css": "^1.3.4", - "web-vitals": "^5.2.0", - "zod": "^3.24.2" + "web-vitals": "^5.2.0" }, "devDependencies": { "@cloudflare/workers-types": "^4.20260527.1", @@ -8208,15 +8207,6 @@ "error-stack-parser-es": "^1.0.5" } }, - "node_modules/zod": { - "version": "3.25.76", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", - "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", diff --git a/package.json b/package.json index 64bb2cb..9da6b26 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "jose": "^6.2.3", "tailwindcss": "^4.2.1", "tw-animate-css": "^1.3.4", - "web-vitals": "^5.2.0", - "zod": "^3.24.2" + "web-vitals": "^5.2.0" }, "devDependencies": { "@cloudflare/workers-types": "^4.20260527.1", diff --git a/src/components/BriefingForm.astro b/src/components/BriefingForm.astro index 64ca0d5..38af47c 100644 --- a/src/components/BriefingForm.astro +++ b/src/components/BriefingForm.astro @@ -93,7 +93,6 @@ const errorClass = "mt-2 text-xs text-accent font-bold";