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

[⚡ Feature]: Dev mode polyfill for cloudflare:sockets #735

Open
1 task
n3oney opened this issue Apr 7, 2024 · 2 comments
Open
1 task

[⚡ Feature]: Dev mode polyfill for cloudflare:sockets #735

n3oney opened this issue Apr 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@n3oney
Copy link

n3oney commented Apr 7, 2024

Description

I use cloudflare:sockets to connect to my postgres database. It works fine in preview mode, however developing with it is pretty much impossible, due to the module not being available.

It'd be great if there was some kind of polyfill impl of cloudflare:sockets, so that it could be used in dev mode.

Additional Information

No response

Would you like to help?

  • Would you like to help implement this feature?
@n3oney n3oney added the enhancement New feature or request label Apr 7, 2024
@dario-piotrowicz
Copy link
Member

@n3oney I think that this issue is not specific to next-on-pages but to any nodejs dev server that targets cloudflare (that might use getPlatformProxy for example) and I guess there would be more modules that would need to be polyfilled

Could you create a feature request issue in workers-sdk: https://github.com/cloudflare/workers-sdk/issues/new?assignees=&labels=enhancement&projects=&template=feature-request.yaml&title=%F0%9F%9A%80+Feature+Request%3A
asking for such polyfills?

if we had them there then adding them to next-dev should be pretty straightforward 🙂

@n3oney
Copy link
Author

n3oney commented Apr 8, 2024

cloudflare/workers-sdk#5555

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