Skip to content

serverless-pg with Netlify #70

@arnaudjnn

Description

@arnaudjnn

I'm using Netlify functions for serverless

When I tried serverless-pg I had the following error:

[ERROR] Could not resolve "pg-native"
    node_modules/pg/lib/native/client.js:4:21:
      4 │ var Native = require('pg-native')

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions