Skip to content

Commit 4df1b91

Browse files
committed
Revert "Install pg-native"
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
1 parent b157885 commit 4df1b91

File tree

3 files changed

+10
-61
lines changed

3 files changed

+10
-61
lines changed

next.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
module.exports = {
22
// Target must be serverless
33
target: 'serverless',
4+
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
5+
// Note: we provide webpack above so you should not `require` it
6+
// Perform customizations to webpack config
7+
config.plugins.push(new webpack.IgnorePlugin(/.\/native/))
8+
9+
// Important: return the modified config
10+
return config
11+
},
412
};

package-lock.json

+2-60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"next-on-netlify": "^2.3.2",
1515
"pg": "^8.3.2",
1616
"pg-hstore": "^2.3.3",
17-
"pg-native": "^3.0.0",
1817
"react": "^16.12.0",
1918
"react-dom": "^16.12.0",
2019
"sequelize": "^6.3.4"

0 commit comments

Comments
 (0)