import { defineConfig } from "@playwright/test"; import releaseConfig from "./playwright.config.ts"; export default defineConfig({ ...releaseConfig, use: { ...releaseConfig.use, baseURL: "http://127.0.0.1:5173", }, webServer: { command: "corepack pnpm dev --host 127.0.0.1", url: "http://127.0.0.1:5173", reuseExistingServer: true, // Template af312dee. The dev server serves public/config.json, the local // profile, whose BUILD_ID is local-build. CI sets VITE_BUILD_ID for the whole // workflow; built into the dev bundle it makes every page a rolling-release // mismatch that reloads once and then fails closed (CONFIG_BUILD_MISMATCH). env: { VITE_BUILD_ID: "local-build", VITE_COMMIT_SHA: "local" }, }, });