fix(e2e): use --mode node for Vite in Playwright to skip cloudflare plugin

E2E tests use the Node backend (tsx watch server/entry-node.ts).
Without --mode node, Vite loads the cloudflare() plugin which starts
a Workers runtime that fails on missing env bindings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
saltbo
2026-04-12 12:25:38 -04:00
co-authored by Claude Opus 4.6
parent ca19a72069
commit 9b1cde68fa
+1 -1
View File
@@ -20,7 +20,7 @@ export default defineConfig({
reuseExistingServer: !process.env.CI,
},
{
command: 'vite',
command: 'vite --mode node',
port: 5173,
reuseExistingServer: !process.env.CI,
},