Firebase + React auth not working with my .env

So i’ve read many topics and lose so much time cause of this issue. My components don’t load anymore and i’m receiving this error in my console : ‘FirebaseError: Firebase: Error (auth/invalid-api-key).’ (I specify that is my first project using firebase). About my firebase.config.js : import firebase from ‘firebase/compat/app’; import ‘firebase/compat/auth’; const app = firebase.initializeApp({… Read More Firebase + React auth not working with my .env

How can I pass environment variables by using dotenv in react app ? I get undefined

This is my react fontend app. to pass data from node.js backend, I need to successfully pass API’s url. currently im setting the address to my localhost. I am struggling to path process.env.API_URL to my config file. my files structure is .src – config * config.js – .env .webpack.config.js my .env file is API_URL=http://localhost:3006 my… Read More How can I pass environment variables by using dotenv in react app ? I get undefined