Deploy Sveltekit on Workers with Bun

Even with just the starter template the automatic builds fail with
✘ [ERROR] The entry-point file at ".svelte-kit/cloudflare/_worker.js" was not found.
✘ [ERROR] The entry-point file at ".svelte-kit/cloudflare/_worker.js" was not found.
Steps to reproduce 1. Use npm create cloudflare@latest new-app -- --type=web-framework --experimental 2. Select Sveltekit and Bun 3. Connect your worker to git and push a commit PS: Deploying locally with wrangler works fine. Please help.
1 Reply
apolodoro
apolodoroOP3w ago
Solved - Remember to add "bun run build" specifically as your build command

Did you find this page helpful?