import { defineConfig } from "@playwright/test"; import rateLimits from "./playwright.rate-limits.config"; const backend = rateLimits.webServer as { env: Record; command: string }; const env = { ...backend.env, ASPNETCORE_ENVIRONMENT: "Production", App__PublicBaseUrl: "https://jobs.example.test" }; delete (env as Record).Cors__Origins__0; // Exercise the real production CORS default. export default defineConfig({ testDir: "./ingress-tests", workers: 1, retries: 0, // dotnet run's launch profile otherwise overrides ASPNETCORE_ENVIRONMENT with Development. webServer: { ...backend, command: backend.command.replace(" run ", " run --no-launch-profile "), env }, });