Henri Kuper
06/24/2021, 9:23 AMurl = env("POSTGRES_URL")
to work with local, dev and prod environments without manually set the url into the schema.
The app says error: Environment variable not found: POSTGRES_URL.
It works fine if I open prisma studio from the terminal.
Is there I way to add e.g 3 urls that I can select, to quickly work with the app on local, dev and prod? Do I miss anything?
Otherwise I would need to add the full url directly to the schema each time, which is not very handy.Ryan
06/24/2021, 9:46 AMHenri Kuper
06/24/2021, 9:48 AMRyan
06/24/2021, 9:51 AMHenri Kuper
06/24/2021, 12:30 PMRyan
06/25/2021, 10:46 AMRyan
06/25/2021, 10:47 AMHenri Kuper
06/25/2021, 10:52 AMHenri Kuper
06/25/2021, 10:54 AMRyan
06/25/2021, 10:59 AM.env
is stored in the root of the project and I’m using the latest version of Studio as above.Ryan
06/25/2021, 11:00 AMHenri Kuper
06/25/2021, 11:14 AMHenri Kuper
06/25/2021, 11:43 AMRyan
06/25/2021, 11:48 AMHenri Kuper
06/25/2021, 11:55 AMRyan
06/25/2021, 11:56 AMprisma
. Maybe that’s causing some issueRyan
06/25/2021, 11:56 AMprisma
and @prisma/cli
?Henri Kuper
06/25/2021, 12:20 PM