vercel
could anyone give me a tip as to why I can connect to my neon database via localhost but it's giving a 500 error when trying to connect through my vercel deployment?
4 Replies
conscious-sapphire•7mo ago
Are you using the Neon integration through Vercel? Maybe check your Vercel environment variables for the database and compare to your Neon database connection details.
sensitive-blueOP•7mo ago
yeah, as far as I can tell the variables are the same. Do you know if the neon project id needs to be included somehow? Of do i need to use an Auth provider?
conscious-sapphire•7mo ago
If you are using one of our integrations, there's a project connection step. Our Vercel docs can be found here which outlines the steps: https://neon.tech/docs/guides/vercel-overview
Neon
Neon and Vercel overview - Neon Docs
Neon supports different options for integrating Neon and Vercel, including a native integration that you can install from the Vercel Marketplace, a "previews integration" that creates a database branc...
sensitive-blueOP•7mo ago
im pretty sure i've done all that. the connection actually seems to work. https://wrks-teal.vercel.app/api/test-db
But my login script must have some problem. Like I said it works on localhost, but not on the deployed version.