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

feat: cloudflare durable objects support #54

Merged
merged 3 commits into from
Aug 2, 2024
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Aug 2, 2024

Resolves #49

This PR adds a new composable adapter for cloudflare with DurableObjects, Pub/Sub, and Hibernation support.

Composable method (vs class extension) allows automating setup and composing with other usecases in higher layers (H3, Nitro).

Note: This PR is only step 1, and needs to be better tested after release and also integrated in Nitro in order to be usable.

@pi0 pi0 self-assigned this Aug 2, 2024
Copy link

cloudflare-workers-and-pages bot commented Aug 2, 2024

Deploying crossws with  Cloudflare Pages  Cloudflare Pages

Latest commit: 62ec9b6
Status: ✅  Deploy successful!
Preview URL: https://b57fec30.crossws.pages.dev
Branch Preview URL: https://feat-cloudflare-durable.crossws.pages.dev

View logs

@pi0 pi0 merged commit 2f3f709 into main Aug 2, 2024
3 checks passed
@pi0 pi0 deleted the feat/cloudflare-durable branch August 7, 2024 09:28
@vinayakkulkarni
Copy link

hey @pi0, is there a demo using this with Nitro or Nuxt? i am building a Nuxt 3 app and find it extremely difficult to go deep into Nuxt -> Nitro -> h3 / crossws to find a solution for Durable objects w/ Nuxt 3.

//cc: @manniL

@pi0
Copy link
Member Author

pi0 commented Sep 9, 2024

@vinayakkulkarni this feature is not yet supported in nitro and needs a new preset.

@vinayakkulkarni
Copy link

@vinayakkulkarni this feature is not yet supported in nitro and needs a new preset.

Is there a way I can help?

@pi0
Copy link
Member Author

pi0 commented Sep 11, 2024

@vinayakkulkarni i understand and appreciate that you are willing to help but sometimes patience is best course of action 🙏🏼 (please read https://github.com/pi0/tired-maintainer)

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

Successfully merging this pull request may close these issues.

Cloudflare Durable Objects
2 participants