Upgrading to new database issues nextjs and prisma
Have updated my old database as instructed, Noticed the database url is different trouble connecting after updating the database url. Cant seem to find futher instruction on the changes to be made to continue with use?
8 Replies
Project ID:
eea6e580-b984-4353-bc17-5d5bb459d04e
eea6e580-b984-4353-bc17-5d5bb459d04e
Is your app hosted on Railway as well?
vercel
Alright, go into the database service's Variables tab and copy the
DATABASE_URL
variable, that's what you should connect withHave made this change in my local env, not able to connect
should the private database url be used in dev and databseurl in production?
I appreciate your time
Nope, it should be DATABASE_URL in general (PRIVATE_DATABASE_URL is for services inside the project's internal network) - what's the error you're getting?
all sorted thankyou, i was being daft