PrismaP
Prisma14mo ago
3 replies
Alex DiGrazia

DATABASE_URL environment variable not found

Error: Prisma schema validation - (get-config wasm)
Error code: P1012
error: Environment variable not found: DATABASE_URL.
--> prisma/schema.prisma:8
|
7 | provider = "postgres"
8 | url = env("DATABASE_URL")
|

Validation Error Count: 1
[Context: getConfig]


anyone else hit this error before?

I am running a Dockerized Express API on an AWS EC2, and entered environment variables via the

bash 
docker run -e DATABASE_URL=${{ secrets.DATABASE_URL }}


-e tag in the docker run command.
This is all within the context of a CI/CD pipeline I'm setting up.

Currently debugging and digging around for a solution.
Was this page helpful?