How to use environmenty specific .env file with firebase deploy

34 views Asked by At

I have my 3 projects on my local emulator and

.env.myfirebaseproject-dev
.env.myfirebaseproject-prod

How can i specify which one is used when i run

firebase deploy --only functions
1

There are 1 answers

0
Dživo Jelić On

To answer my own question:

.env
.env.local 
.env.<your-project-name>

All will be deployed and ones with the firebase project name will be used when deployed.

I would like give that instruction to the firebase deploy to exclude other files from deployment but it is what it is