Fix local dev and update Wrangler config
This PR improves local development on macOS arm64 and updates Wrangler configuration for production/local dev.\n\nChanges included:\n- Replace rolldown-vite with standard Vite (^5.4.11) to fix missing native binding errors\n- Disable @cloudflare/vite-plugin in vite.config.ts for local dev (avoids plugin TypeError during load)\n- Add Vite proxy for /api to http://localhost:8787 to route requests to local Workers dev server\n- Configure wrangler.jsonc: set tsconfig.worker.json, compatibility flags/date, assets SPA handling, observability, unsafe rate limiter bindings, AI/Images/Dispatch/D1/DO/R2/KV, migrations, routes, vars, dev.enable_containers=false\n\nNotes:\n- There are remaining alias resolution issues in Workers build (shared/, worker/) to be addressed separately.\n
Thanks for raising this PR. A couple of things though:
- Any particular reasons for switching to npm instead of bun? The missing native bindings errors don't occur in the first place if using bun, and it also speeds up the packages installation process in CI/CD (workers build).
- You commited .history folder as well. I dont think thats needed here
- Vite Cloudflare plugin is an official way for doing local dev with vite + workers. Any particular reasons why this was to be removed?
Did you try using it with bun instead of npm? The automated setup script should automatically install and configure bun; That's the recommended package manager for this project.