Cannot connect to Neon

I figured it out. I was migrating from a serverless environment and using the neon-serverless driver. Needed to switch to something like postgres.js. I tried deploying on Railway as well and got the same error, which tipped me off.