Connecting nextjs to a Postgres db on a ec2 ínstame

Hello, I been making this small bus app on nextjs and using Postgres as my database. Everything works locally and I’ve gotten my db working on my ec2 instance. But I’m confused on how my nextjs app is suppose to reach my database. I tried changing my db configuration on nextjs to use the ipv4 address from the ec2 instance but that did nothing. Wondering if I should just set up a nodejs server on the instance to receive calls from nextjs/vercel?
0 Replies
No replies yetBe the first to reply to this messageJoin