I have the following under envVars
for my app
- key: DATABASE_URL
fromDatabase:
name: app-db
property: connectionString
When I deploy, I see the following:
Feb 18 07:26:31 PM Prisma schema loaded from api/db/schema.prisma
Feb 18 07:26:32 PM Error: Schema validation error - Error (query-engine-node-api library)
Feb 18 07:26:32 PM Error code: P1012
Feb 18 07:26:32 PM error: Environment variable not found: DATABASE_URL.
Feb 18 07:26:32 PM --> schema.prisma:3
Feb 18 07:26:32 PM |
Feb 18 07:26:32 PM 2 | provider = "postgresql"
Feb 18 07:26:32 PM 3 | url = env("DATABASE_URL")
Feb 18 07:26:32 PM |
I don’t have the DATABASE_URL
env var referenced anywhere else, but I would expect this to work as is. Is there anything obvious I could be missing, or is the expectation that I need to additionally set DATABASE_URL
in the app environment?