orange
orange copied to clipboard
Using on Pages
Are there instructions on how we could deploy this demo using Pages perhaps?
Hey! When this project started, there were some issues I ran into with running it on Pages (I can't recall what though 😅) — but there's a good chance that those have been resolved since. If I'm able to find some time for it, I'll take a stab at migrating this!
That'd be great, thanks!
I ran into a couple challenges getting a pages setup going. First big thing is that you need to create a worker for the Durable Object and run it in parallel with the pages project locally (this is documented on pages in bindings section). I got it working locally but I had trouble getting the binding from pages to the Durable Object working right on the deployment. I ended up moving on from it but I think it can be done with a little persistence.
Also if you're using a framework that uses Vite, getting the WebSockets working correctly is a pain
Just found this thread - was anyone successful in making this work on Pages with the Durable Object as mentioned?
Only with the manual tutorial given (npm run deploy). With the git integration the page is blank for some reason