DATABASE_URL env variable not found

Not sure whether this is a supabase or prisma or .env question, but this is where I got stuck: schema.prisma has been created and i'm doing a npx prisma db push terminal command but got the error ---- Prisma schema loaded from prisma\schema.prisma Error: Prisma schema validation - (get-config wasm) Error code: P1012 error: Environment variable not found: DATABASE_URL. --> prisma\schema.prisma:10 | 9 | provider = "postgresql" 10 | url = env("DATABASE_URL") | Validation Error Count: 1 [Context: getConfig] Prisma CLI Version : 6.17.1 --- I've verified that the the .env.local file exists and that gitignore specifically did !.env.local. The DATABASE_URL in .env.local is also correct. I'm on Windows 11 Home, PowerShell Terminal Thanks in advance for any help and guidance.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?