t3-code-android-nightly/.repos/alchemy-effect/packages/frontend-frameworks/fixtures/astro-ssr/astro.config.mjs
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00

20 lines
1 KiB
JavaScript

// A REAL user config file — the point of this fixture. The integration must
// honor it (the "respect user config files" principle) rather than pinning
// `configFile: false`. Every setting here is user-observable and asserted by
// the Playwright suite:
// - `output: "server"` — SSR-first: every route is on-demand unless it opts
// into prerendering (`/about/` is the single hybrid exception).
// - `redirects` — `/legacy-greeting` must redirect to the on-demand
// `/greet/astro` route (dynamic, so it must be handled by the worker in
// both dev and live — there is no prerendered target to fall back to).
// - `security.checkOrigin: false` — the suite POSTs forms straight to the
// server (no Origin header); the default `checkOrigin: true` would 403.
// - `devToolbar` disabled so dev-mode HTML matches the built output.
import { defineConfig } from "astro/config";
export default defineConfig({
output: "server",
devToolbar: { enabled: false },
redirects: { "/legacy-greeting": "/greet/astro" },
security: { checkOrigin: false },
});