From 355c9a13fa83bfae97a70d90cbb873f76fe98b7e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 14 Jan 2026 16:14:18 +0000 Subject: [PATCH] test(e2e): force NODE_ENV=development for webServer Prevents middleware Edge runtime from failing on eval-based dev bundles when NODE_ENV is set to a non-standard value in the environment. Co-authored-by: dennis --- playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 70a7096..fd47133 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -45,7 +45,8 @@ export default defineConfig({ webServer: { // Use plain Next.js dev server for E2E (no Docker dependency) - command: 'npm run dev:next', + // Force NODE_ENV=development to avoid Edge runtime eval issues in middleware bundle + command: 'NODE_ENV=development npm run dev:next', url: 'http://localhost:3000', reuseExistingServer: true, // Always reuse if server is running timeout: 120 * 1000,