Skip to content

Instantly share code, notes, and snippets.

View HyunwooMoon-developer's full-sized avatar

Hyunwoo Moon HyunwooMoon-developer

  • Los Angeles, CA
View GitHub Profile
@bookcasey
bookcasey / Node-pg-and-heroku-ssl.md
Last active September 25, 2021 19:38
How to fix Node/pg version compatibility issues, and set the correct SSL options for heroku

How to fix common Node/pg compatability issues locally and on Heroku

Certain versions of the pg library do not play nice with certain versions of node.

The following combinations are known to work:

  • Node v12 and pg@7
  • Node >=v14 and pg@8

Additionally, different versions of pg on heroku requires certain ssl options to be set certain ways.