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