Cannot connect to Neon database from local machine (Node)
Hi, I want to interact with my Neon database from my machine (that will make development easier)
I'm using Node + Express as an API that communicates with Neon.
I can connect to the database with pgadmin and psql from my machine.
The deployed version of the API can connect to Neon as well, but I can't connect from local Node.
The environment variables are correct.
Code:
Error:
It looks like it's trying to connect to 127.0.0.1 (localhost), even though it should be connecting to Neon?
I'm using Node + Express as an API that communicates with Neon.
I can connect to the database with pgadmin and psql from my machine.
The deployed version of the API can connect to Neon as well, but I can't connect from local Node.
The environment variables are correct.
Code:
Error:
It looks like it's trying to connect to 127.0.0.1 (localhost), even though it should be connecting to Neon?
