Closed Khaleel closed 6 years ago
You have to replace the PLACEHOLDER in src/firebase/firebase.js with your own credentials from Firebase. If you are in production, replace the prodConfig
as well.
How do I set it in prod or dev mode?
Would this work:
? prodConfig
: devConfig;
The firebase.js file already distinguishes between dev and prod config. You only need to fill in the PLACEHOLDER (e.g. YOUR_API_KEY) that you get from the Firebase platform after you have created a new project there. When doing npm start
, you will use the devConfig
, when doing npm run build
, you will get the propConfig
.
Hi
Please can you give complete instructions.
I only have FB credentials in the development object but node is thinking I am in production - all I did was edited
firebase.js
and placed devConfig data and rannpm start
it says:Thanks so much for this script