Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions templates/app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ export default defineConfig({
// failures harder to read, and this is closer to what ships.
webServer: {
command: `pnpm build && pnpm preview --port ${PORT} --strictPort`,
// The suite owns this production build, so give it an explicit mock-only
// environment instead of relying on a developer's untracked `.env` file.
// Regular production builds still require their deployment configuration.
env: {
VITE_API_URL: 'http://api.invalid',
VITE_API_MOCK: 'true',
VITE_APP_NAME: 'Stack App E2E',
},
url: baseURL,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
Expand Down
Loading