We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a27fbb commit 2fc7901Copy full SHA for 2fc7901
server/services/db.js
@@ -5,7 +5,9 @@ if (settings == undefined) {
5
settings = "pg://localhost:5432/javascriptcom";
6
}
7
8
-pg.defaults.ssl = true;
+if (process.env.NODE_ENV === 'production') {
9
+ pg.defaults.ssl = true;
10
+}
11
12
/* A parameterized query. An empty args array may be passed if there are no paramaters.
13
* Results are passed to a callback.
0 commit comments