@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
mjs 20 lines 1.05 KB
Raw
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.
13 import { defineConfig } from "astro/config";
14
15 export default defineConfig({
16 output: "server",
17 devToolbar: { enabled: false },
18 redirects: { "/legacy-greeting": "/greet/astro" },
19 security: { checkOrigin: false },
20 });