-
Notifications
You must be signed in to change notification settings - Fork 16
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
serverless-pg with Netlify #70
Comments
Any chance you have this variable set? I have never used Netlify myself, but I have found something: brianc/node-postgres#1894 (comment) |
@MatteoGioioso I tried to set Is it possible to use postgres instead pg as detailed here? https://answers.netlify.com/t/continues-deployment-of-functions-with-postgresql/44730/30 |
@arnaudjnn I think you should unset it. regarding to use another library, I think it should be possible: serverless-pg/__tests__/index.test.js Line 565 in 37f52a9
however the API must be compatible |
Sorry no I haven't this variable How would you do to use another library like Would be awesome to get an example working with Netlify! |
You could try something like that
although I see that the library you are suggesting use quite different API. I will test something and let you know. PS: have you tried this? brianc/node-postgres#1894 (comment) |
It may be worth considering running the library through a bundler to make this problem go away. I've spent most of today trying to get pg through parcel without any luck, and it would certainly make some sense for this library to deliberately excise |
I'm using Netlify functions for serverless
When I tried
serverless-pg
I had the following error:So I installed pg-native, working well locally but then I have the following error with deploy: https://answers.netlify.com/t/unable-to-publish-function-using-postgres/12293
Do you have an install with Netlify? How can I fix the error with libpq?
The text was updated successfully, but these errors were encountered: