a year ago
I have a warning symbol for my database uri (reference to the Postgres container) that I should use the private url to save on ingress.
It makes totally sense, but it does not work, during the build (Next.js app), it needs to connect to the database to do migrations and generate static pages
and if I provide the private database url, this fails because it can't connect to the database.
Am I doing something wrong? Or how should I configure it?
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Hello,
The private network is not available during build, you will have to connect publically during build and switch to the private network during runtime, or simply not use the database during build and do what needs to be done with the database during runtime.