R
Railway13mo ago
Modz

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
Percy
Percy13mo ago
Project ID: eea6e580-b984-4353-bc17-5d5bb459d04e
Modz
ModzOP13mo ago
eea6e580-b984-4353-bc17-5d5bb459d04e
root
root13mo ago
Is your app hosted on Railway as well?
Modz
ModzOP13mo ago
vercel
root
root13mo ago
Alright, go into the database service's Variables tab and copy the DATABASE_URL variable, that's what you should connect with
Modz
ModzOP13mo ago
Have 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
root
root13mo ago
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?
Modz
ModzOP13mo ago
all sorted thankyou, i was being daft
Want results from more Discord servers?
Add your server