Hello, there was a problem during master deploymen...
# orm-help
k
Hello, there was a problem during master deployment after changing from postgres url to prisma proxy url.
InvalidDatasourceError: Datasource "db" references an environment variable "POSTGRE_DATABASE_URL" that is not set
An error occurs. My env value is like this.
<prisma://XXX.prisma-data.com/?api_key=XXX>
Prisma Enabled Version:
4.2.1
Prisma.schema is as follows.
datasource db {
provider = "postgresql"
url = env("POSTGRE_DATABASE_URL")
}
Is there a reason why this error occurs?
πŸ‘€ 1
r
is ur variable
POSTGRE_DATABASE_URL
or
POSTGRES_DATABASE_URL
the error is pretty clear lol. ur env variable isn't found
k
Thank you for your answer! @Robert Lee
POSTGRE_DATABASE_URL=<prisma://XXX.prisma-data.com/?api_key=XXX>
The env file looks like this. Local uses
POSTGRE_DATABASE_URL = <postgres://XXX>
but works fine Should I add other options when using proxy? Is there something wrong with the setting? πŸ˜…πŸ˜‡
r
Do you have that env variable in your production env?
k
Yes, it is already applied. But I don’t think I can read it😭
n
Where are you deploying your app?
k
@Nurul google cloud functuons It is! πŸ‘€
n
Hey, apologies for delay in responding to follow up. Is your code open source? If yes, can you share the repository so that I can try to deploy to cloud functions and check if I could reproduce the error.