Open RichardHausgartner opened 3 days ago
Describe the bug
Prisma CLI Version : 5.22.0 Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL database Error: Prisma schema validation - (get-config wasm) Error code: P1012 error: Environment variable not found: DIRECT_DATABASE_URL. --> prisma/schema.prisma:4 | 3 | url = env("DATABASE_URL") 4 | directUrl = env("DIRECT_DATABASE_URL") | Validation Error Count: 1 [Context: getConfig] Prisma CLI Version : 5.22.0
To Reproduce Steps to reproduce the behavior:
Additional context I've added as a workaround the variable DIRECT_DATABASE_URL to my .env file, and set it the same value as DATABASE_URL. This works, but maybe this is not necessary?
DIRECT_DATABASE_URL
.env
DATABASE_URL
Describe the bug
To Reproduce Steps to reproduce the behavior:
Additional context I've added as a workaround the variable
DIRECT_DATABASE_URL
to my.env
file, and set it the same value asDATABASE_URL
. This works, but maybe this is not necessary?