I have the .env file saved with my firebase web API key saved in my local working directory. I use it in my project as
.env file
const firebaseConfig = {