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

DurableObjects support #50

Open
lucadalli opened this issue Apr 5, 2024 · 4 comments
Open

DurableObjects support #50

lucadalli opened this issue Apr 5, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@lucadalli
Copy link

As a heavy Cloudflare user that is returning back to Nuxt after using other meta-frameworks, I am very excited about this project.

The greatest struggle I face when working with Cloudflare is that meta frameworks tend to provide no support/tooling/abstractions for DurableObjects and I have to set up an entirely new project with wrangler.

Would be an absolute game changer to be able to have my DurableObject definitions living inside my Nuxt project.

@Atinux
Copy link
Contributor

Atinux commented Apr 6, 2024

Hey @lucadalli

Yes this is planned! I want to use them for many reasons and the biggest one being sockets broadcasting.

As Pages does not support direct bindings we need to create another worker for accessing durable objects.

@Atinux Atinux added the enhancement New feature or request label Apr 6, 2024
@lucadalli
Copy link
Author

@Atinux Super exciting stuff!

I believe Pages does support bindings to production and preview deployments via the Cloudflare dashboard.
In my Pages project dashboard I see the possibility to bind to DurableObjects defined in a separate workers project.
So perhaps it would suffice to create another worker to define the DurableObjects, but binding to and accessing the DurableObjects can be done from Pages project.

Copy link
Contributor

Atinux commented Apr 9, 2024

If you have a small demo I would love to see how you achieved it, haven't got the time to look at it yet!

Copy link
Contributor

Atinux commented Jun 20, 2024

Adding https://github.com/kwhitley/itty-durable as I like how they define DO.

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

No branches or pull requests

2 participants