PrismaP
Prisma12mo ago
4 replies
Nykloon

Prisma with multi environments

Hello there,
I'm trying to use Prisma for both development and
production
environment. I have two environment files:
- .env.development
- .env.production

Locally, all I need is .env.development, so the production file is not relevant here. However, once I deploy it, there will be a .env.production file present which should be used, but Prisma - as the docs say- don't seem to allow that naming. Is there a way to stick to the name still? I don't want to rename it to just
.env
because 1) it's just better naming and 2) my whole app uses that, not just prisma.

Any ideas? PS: I haven't tested deployment yet, I'm just making sure I plan ahead properly
Was this page helpful?