Hi :the_horns: I have follow this article to be a...
# orm-help
b
Hi 🤘 I have follow this article to be able to use multiple .env files, but that doesn't works. https://www.prisma.io/docs/guides/development-environment/environment-variables/using-multiple-env-files i use prisma with nestjs.
Copy code
"start:dev": "dotenv -e ./.env.local -- nest start --watch",
When lauching
Copy code
npm start run:dev
I have the following error
Copy code
Error: error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:10
   | 
 9 |   provider = "postgresql"
10 |   url      = env("DATABASE_URL")
   |
Working solution :
Copy code
dotenv -e .env.local -- npm start run:dev
Do you have an idea ?
👀 1
r
Hi @Benjamin FROLICHER 👋 I guess you were able to figure this out .
b
humm no 😅 I would have preferred the solution proposed in the article.
@Raphael Etim You mark the question as resolved but even the documentation is wrong or I miss something
r
Hi @Benjamin FROLICHER, you wrote working solution
Copy code
dotenv -e .env.local -- npm start run:dev
so i thought it worked for you, nevertheless i'll dig in now.