Deploying to cloudflare using wrangler vite
Hello everyone, came across this project and love how it solves every pain points i have had with dos. And the option to migrate off to your own cloud and not being vendor locked was awesome. While i was a lot to deploy it using the example I wasn’t able to get it working using the Cloudflare wrangler vite plugin. Can anyone help or have a boiler plate using the vite plugin.
8 Replies
hey! this is an example that's not in the examples folder, correct? https://github.com/rivet-dev/rivetkit/tree/main/examples/cloudflare-workers
GitHub
rivetkit/examples/cloudflare-workers at main · rivet-dev/rivetkit
A library for building stateful workloads anywhere - rivet-dev/rivetkit
can you send an example project (vite config + wrangler config) when you have a chance
Yes the example above works well but there are no examples using the Cloudflare Vite Plugin. I will setup an example project and send you soon! Thank you!
Hello, sorry for taking so long here is an example setup I have based on the multiplayer game example in the rivetkit repo.
https://github.com/fitsumayalew/rivetkit-game-cloudflare-workers
The main issue seems to be that after calling
http://localhost:5173/rivet/metadata?namespace=default it calls http://127.0.0.1:6420/actors?namespace=default but that endpoint doesn't exist
Sometimes it shows this error on the terminal but couldn't figure out why it was showing some of the times and not other times
And it also has this error when deploying
Let me know if there is any other way I can help!
GitHub
GitHub - fitsumayalew/rivetkit-game-cloudflare-workers
Contribute to fitsumayalew/rivetkit-game-cloudflare-workers development by creating an account on GitHub.
Hey! Some folks are reporting issues with the most recent Cloudflare driver. We're working on fixing it today.
Awesome will check back after it is fixed then 🙌
@fitsumayalew give v2.0.15 a try – thanks for the patience!
It works very smoothly 🔥 can't wait to explore it more. This setup looks so good. Keep doing the great work!