Skip to content

fix: vinext start uses wrangler for Cloudflare builds - #3009

Open
AiAlchemist0 wants to merge 1 commit into
cloudflare:mainfrom
AiAlchemist0:fix/start-wrangler-cloudflare
Open

fix: vinext start uses wrangler for Cloudflare builds#3009
AiAlchemist0 wants to merge 1 commit into
cloudflare:mainfrom
AiAlchemist0:fix/start-wrangler-cloudflare

Conversation

@AiAlchemist0

Copy link
Copy Markdown

Fixes #2966

vinext start always ran the Node production server and looked for dist/server/index.js. A Cloudflare Vite build emits dist/<worker>/wrangler.json (or dist/server/wrangler.json). If that file is present, start now runs wrangler dev --config … instead. Node projects are unchanged.

Did not touch init. Tests for finding the emitted config.

I used an assistant on the edit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant