orange icon indicating copy to clipboard operation
orange copied to clipboard

Using on Pages

Open freitasm opened this issue 10 months ago • 5 comments

Are there instructions on how we could deploy this demo using Pages perhaps?

freitasm avatar Apr 15 '24 05:04 freitasm

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!

third774 avatar Apr 15 '24 14:04 third774

That'd be great, thanks!

freitasm avatar Apr 15 '24 22:04 freitasm

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

danecando avatar May 01 '24 02:05 danecando

Just found this thread - was anyone successful in making this work on Pages with the Durable Object as mentioned?

brentrealbt avatar May 14 '24 23:05 brentrealbt

Only with the manual tutorial given (npm run deploy). With the git integration the page is blank for some reason

Javdu10 avatar May 22 '24 05:05 Javdu10