# Trunk configuration for the CSR/WASM UI. # # Run modes (never change the redirect URI off http://127.0.0.1:3000/callback): # dev (E2E target): `cd crates/web && trunk serve --port 3000` # plus the BFF on :3001; this file proxies /oauth/, /callback, /api/. # Trunk's proxy follows the BFF's /oauth/start 302 to the AS and swallows # it (200 empty body), so sign-in MUST bypass the proxy: run the BFF with # `APP_START_URL=http://127.0.0.1:3001/oauth/start` and the landing CTA # navigates straight at the BFF origin (top-level assign, cookies are # host-scoped so SameSite=Lax still holds across :3000 -> :3001). # demo/prod: `SERVER_BIND_ADDR=127.0.0.1:3000 cargo run -p server` # serves crates/web/dist directly; no Trunk process, no proxies, no # APP_START_URL override (relative /oauth/start is same-origin). # # Build (verification): `trunk build`. The executor never runs `trunk serve`. [build] target = "index.html" # Strict-CSP boot (no inline scripts). Trunk's default autoloader is an inline # `