Is '.env.' file is secure to store sensitive keys in production?

240 Views Asked by At

I am developing a Flutter mobile and web app, using Firebase as a database. I want to store Firebase's all keys like the API key, app ID, project ID, etc... securely. I am using '.env'. file to store them. But is it safe in production?

1

There are 1 best solutions below

1
On

One thing i should add is if you are using github as your version control, then don't forget to add your .env file to the .gitignore file.