What is the practice for collecting firebase files in a NodeJS application?
I recently researched firebase for hosting a React app in a NodeJS framework. The Firebase command line tools initialization created two files:
.firebaserc
firebase.json
What is the accepted practice for pushing these files into the repository? Not? I searched Google and, ironically, didn't find what I was looking for.
I am working on two machines and feel like this .firebaserc
is an environment / machine specification and therefore shouldn't be .firebaserc
to the repository. If I was working on this project with other developers, I had the feeling that I want it to firebase.json
be compatible across environments / machines. I would not want another developer to make changes firebase.json
independently of others working on the codebase.
So I mean commit firebase.json
and add .firebaserc
to .gitignore
.
source to share
You should always check firebase.json
.
For collaborative team projects (where you usually work on the same projects for staging, development, etc.), you've checked out .firebaserc
. For open source samples or other codebases where you don't expect everyone to work with the same projects, you don't check .firebaserc
.
The only time this becomes a gray area is when the team wants to have developer / developer testing projects. Here, my guide will still check .firebaserc
with the correct setting for / prod / etc. aliases and each developer simply runs firebase use my-personal-test-project
for separate test environments.
source to share