Skip to content

Commit

Permalink
Fix docs — config.socketPath should be config.host (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored and Ace Nassri committed Oct 10, 2018
1 parent 8af041e commit b193c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/sql/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const pgConfig = {
};

if (process.env.NODE_ENV === 'production') {
pgConfig.socketPath = `/cloudsql/${connectionName}`;
pgConfig.host = `/cloudsql/${connectionName}`;
}

// Connection pools reuse connections between invocations,
Expand Down

0 comments on commit b193c3c

Please sign in to comment.