From ba6a8af251f29a66a99b3bc794e4244fa78a5da4 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Fri, 27 Mar 2026 16:36:11 +0000 Subject: [PATCH] fix: increase Node heap and timeout for Playwright webServer build The e2e webServer builds the frontend via npm run build, which OOMs on CI runners without --max-old-space-size=4096. Also increase timeout from 120s to 180s to accommodate the larger heap build. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/playwright.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index b5a976e0..7cdc203b 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -38,10 +38,10 @@ export default defineConfig({ }, }, { - command: 'npm run build && npm run preview -- --host 127.0.0.1 --port 4173', + command: 'NODE_OPTIONS="--max-old-space-size=4096" npm run build && npm run preview -- --host 127.0.0.1 --port 4173', url: frontendBaseUrl, reuseExistingServer: !process.env.CI, - timeout: 120_000, + timeout: 180_000, env: { ...process.env, VITE_API_URL: apiOrigin,