I created a simple community app using firebase as an exercise using the create-react-app command.
At this time, firebase.js
is created and stored here for things related to firebase security, and firebase.js
is imported from App.js where the main page is located.
The reason I made firebase.js
separately is that I tried to ignore firebase.js
with gitignore because I was trying to upload the project to GitHub, but it would be dangerous if important information was leaked.
I added /src/firebase.js
to .gitignore
, but firebase.js was still visible in the GitHub repository.
TLDR
I entered /src/firebase.js
in gitignore, but firebase.js
was still showing up.