Skip to content

Conversation

@amalej
Copy link

@amalej amalej commented Nov 30, 2025

Description

Running flutterfire configure generates a firebase.json like

{"firestore":{"database":"(default)","location":"nam5","rules":"firestore.rules","indexes":"firestore.indexes.json"},"flutter":{"platforms":{"dart":{"lib/firebase_options.dart":{"projectId":"PROJECT_ID","configurations":{"web":"APP_ID"}}}}}}

Add formatting to the generated firebase.json output when running flutterfire configure.

{
  "firestore": {
    "database": "(default)",
    "location": "nam5",
    "rules": "firestore.rules",
    "indexes": "firestore.indexes.json"
  },
  "flutter": {
    "platforms": {
      "dart": {
        "lib/firebase_options.dart": {
          "projectId": "PROJECT_ID",
          "configurations": {
            "web": "APP_ID"
          }
        }
      }
    }
  }
}

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

note: it doesn't seem like writeFirebaseJsonFile is used anywhere, but updating it anyway. in case we'd prefer this to be removed, just let me know

@CLAassistant
Copy link

CLAassistant commented Nov 30, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants