Skip to content

Should we commit firebase_options.dart file in git #7617

Answered by erayerdin
tusharlock10 asked this question in Q&A
Discussion options

You must be logged in to vote

No one has given an answer and I have come from Google search results to here. firebase_options.dart file is (i) a generated file and (ii) contains vulnerable information such as api key, app id etc.

The red flags are all over the place, so we can safely say that we MUST NOT commit this file. This file can be generated on other dev machines with simple flutterfire configure command anyways. So, it is the best to add this is .gitignore although I still cannot believe it is automatically added to .gitignore on a fresh Flutter project.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tusharlock10
Comment options

You must be logged in to vote
2 replies
@iqfareez
Comment options

@mafreud
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ellet0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants