Skip to content

Commit

Permalink
Revert "Install pg-native"
Browse files Browse the repository at this point in the history
This reverts commit b157885.

Installing pg-native fails on netlify due to node-libpq.

Seems to be a known issue:
- https://community.netlify.com/t/unable-to-publish-function-using-postgres/12293/3
- netlify/build-image#393
  • Loading branch information
FinnWoelm committed Aug 22, 2020
1 parent b157885 commit 4df1b91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 61 deletions.
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
module.exports = {
// Target must be serverless
target: 'serverless',
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
config.plugins.push(new webpack.IgnorePlugin(/.\/native/))

// Important: return the modified config
return config
},
};
62 changes: 2 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"next-on-netlify": "^2.3.2",
"pg": "^8.3.2",
"pg-hstore": "^2.3.3",
"pg-native": "^3.0.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"sequelize": "^6.3.4"
Expand Down

0 comments on commit 4df1b91

Please sign in to comment.