From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Define React environment variables

Define React environment variables

- [Instructor] Something I'd like to show you before moving forward. So that's important to know. So whenever you work on a web project is that whenever you deal with sensitive data like this, so this is the configuration settings for your project, your Firebase projects. So this is information that you should always keep private and secret because you don't want to expose this publicly because anyone could then interact with your database and other Firebase services that you have set up for your project. So this is very critical that you keep this private. For that, we're going to use and create environment variables, and we're going to do that with a new file that I'm going to create at the root of the project. And that's going to be env. And that is something that you're going to specify in your gitignore because you never want to push this. So if you ever use a remote repository, a public remote repository on GitHub for…

Contents