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