7 months ago
Hi guys ! Sorry for the noob questionβ¦
I have set up a postgresql on railway and I would like to connect it to my vercel front-end.
I have a question for the environment variable :
datasource db {
provider = "postgresql"
url = env("DATABASEURL") directUrl = env("DIRECTURL")
}
For the variables, should I use the DATABASEPUBLICURL proxied env from Railway or I need to create a custom domain in the Settings -> Networking -> Public Networking
Thank you for your help π
0 Replies
7 months ago
Since your frontend is on vercel and not on railway, u will need to use the public URL
7 months ago
That will make your project get some egress fees though, since they aren't on the same private network.
7 months ago
may I ask why not run your frontend on railway too?