-
Notifications
You must be signed in to change notification settings - Fork 280
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
Usage in Vercel edge functions #631
Comments
This actually happens in a regular Next app as well when you import db from more than one place. It seems it re-initializes postgres, and postgres doesn't like it. What's needed is some way to create it as a Singleton, but I haven't been able to think of one that Typescript is happy with. |
Vercel edge still doesn't support tcp connections, so not much we can do now. I can imagine they might soon since Cloudflare added support to workers and pages. @AmyBlankenship Mind creating a new issue for that? |
Done #632 |
Cool @AmyBlankenship 👍 |
ohh nice looks like @Ethan-Arrowood from Vercel has started a WinterCG specification on |
Compiling a SvelteKit application that uses postgres.js for
edge
gives the following errors:Error message
It would be nice to be able to use postgres.js from edge functions.
Reproduction steps
Replace this runtime with
edge
.The text was updated successfully, but these errors were encountered: