devabd
03/05/2022, 9:33 PMEnvironment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Error: Get config: Schema Parsing P1012
error: Error validating datasource `db`: the URL must start with the protocol `postgresql://` or `postgres://`.
--> schema.prisma:10
|
9 | provider = "postgresql"
10 | url = env("DATABASE_URL")
|
Validation Error Count: 1
Ishan Manandhar
03/06/2022, 6:25 AMdevabd
03/06/2022, 11:26 AMIshan Manandhar
03/06/2022, 1:59 PMNathan Froese
03/09/2022, 2:00 PMDB_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?schema=${DB_SCHEMA}"
and see if you still get an error. could be somewhere you might be accidentally instantiating it in another .env file somewhere else in your repoBen Patton
03/27/2022, 6:41 PM