Skip to content

Commit b157885

Browse files
committed
Install pg-native
Manually install pg-native for SSL support.
1 parent 336aceb commit b157885

File tree

3 files changed

+61
-10
lines changed

3 files changed

+61
-10
lines changed

next.config.js

-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
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-
},
124
};

package-lock.json

+60-2
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,6 +14,7 @@
1414
"next-on-netlify": "^2.3.2",
1515
"pg": "^8.3.2",
1616
"pg-hstore": "^2.3.3",
17+
"pg-native": "^3.0.0",
1718
"react": "^16.12.0",
1819
"react-dom": "^16.12.0",
1920
"sequelize": "^6.3.4"

0 commit comments

Comments
 (0)