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 <dennis@konkol.net>
This commit is contained in:
Cursor Agent
2026-01-14 16:14:18 +00:00
parent 9364b44196
commit 355c9a13fa

View File

@@ -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,