Skip to content

Commit 75fd759

Browse files
committed
fix(e2e): pass explicit --config to wrangler dev to avoid config ambiguity
vite build generates dist/server/wrangler.json; wrangler auto-discovers it alongside .wrangler/deploy/config.json and refuses to proceed. Passing --config wrangler.jsonc explicitly resolves the ambiguity.
1 parent ee43968 commit 75fd759

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
// In CI, serve the built Worker + static assets via wrangler (instant, no compilation).
1212
// Locally, use the vite dev server for HMR.
1313
command: isCI
14-
? "bunx wrangler dev dist/server/server.js --assets dist/client --port 3000 --compatibility-date 2025-09-02 --compatibility-flag nodejs_compat"
14+
? "bunx wrangler dev dist/server/server.js --config wrangler.jsonc --assets dist/client --port 3000 --compatibility-date 2025-09-02 --compatibility-flag nodejs_compat"
1515
: "bun run dev",
1616
url: "http://localhost:3000",
1717
reuseExistingServer: !isCI,

0 commit comments

Comments
 (0)