Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using on Pages #30

Open
freitasm opened this issue Apr 15, 2024 · 5 comments
Open

Using on Pages #30

freitasm opened this issue Apr 15, 2024 · 5 comments

Comments

@freitasm
Copy link

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

@third774
Copy link
Collaborator

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 third774 reopened this Apr 15, 2024
@freitasm
Copy link
Author

That'd be great, thanks!

@danecando
Copy link

danecando commented May 1, 2024

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

@brentrealbt
Copy link

brentrealbt commented May 14, 2024

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

@Javdu10
Copy link

Javdu10 commented May 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants