pedro
pedro
Explore posts from servers
PPrisma
Created by pedro on 10/29/2024 in #help-and-questions
Help. Prisma ORM is not loading environment variables
I can do the triage as well to be sure it's not related to a specific runtime, package manager, environment, etc. I got this conclusion in a pretty rushed environment so take it with a grain of salt.
7 replies
PPrisma
Created by pedro on 10/29/2024 in #help-and-questions
Help. Prisma ORM is not loading environment variables
Hey, Nurul. Yes, it is. Due to my deployment environment the above solution was the only one I could find. I plan on making reproduction repo and a issue on Github, I just don't have the time for it right now as we have a tight deadline for December in our company.
7 replies
PPrisma
Created by pedro on 10/29/2024 in #help-and-questions
Help. Prisma ORM is not loading environment variables
Temporary fixed it by manually generating the .env file so prisma can read it. In case anyone has the same issue in the futuro until a PR is merged.
[deploy]
release_command = "echo \"DATABASE_URL=\\\"$DATABASE_URL\\\"\" > ./packages/db/.env && bunx turbo run --filter @diet-it/db db:deploy"
[deploy]
release_command = "echo \"DATABASE_URL=\\\"$DATABASE_URL\\\"\" > ./packages/db/.env && bunx turbo run --filter @diet-it/db db:deploy"
7 replies