diff --git a/playwright.config.ts b/playwright.config.ts index 94cb3ae..0ee6e97 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ // In CI, serve the built Worker + static assets via wrangler (instant, no compilation). // Locally, use the vite dev server for HMR. command: isCI - ? "bunx wrangler dev dist/server/server.js --assets dist/client --port 3000 --compatibility-date 2025-09-02 --compatibility-flag nodejs_compat" + ? "rm -rf .wrangler && bunx wrangler dev dist/server/index.js --assets dist/client --port 3000 --compatibility-date 2025-09-02 --compatibility-flag nodejs_compat" : "bun run dev", url: "http://localhost:3000", reuseExistingServer: !isCI, diff --git a/wrangler.jsonc b/wrangler.jsonc index de4b206..403480b 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1,6 +1,7 @@ { "$schema": "node_modules/wrangler/config-schema.json", "name": "my-app", + "main": "@tanstack/react-start/server-entry", "compatibility_date": "2025-09-02", "compatibility_flags": [ "nodejs_compat"