Skip to main content
CuteJSON
↑↓ Navigate Enter Select Esc Close

Firebase Configuration

Intermediate Configuration Files

Firebase Firestore rules and hosting configuration with caching headers. A realistic fixture for your own project or test suite.

{
  "firestore": {
    "rules": "rules_version = '2';\nservice cloud.firestore {\n  match /databases/{database}/documents {\n    match /users/{userId} {\n      allow read, write: if request.auth.uid == userId;\n    }\n  }\n}"
  },
  "hosting": {
    "public": "dist",
    "rewrites": [
      { "source": "/**", "destination": "/index.html" }
    ],
    "headers": [
      {
        "source": "/assets/**",
        "headers": [
          { "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }
        ]
      }
    ]
  }
}
JSON Examples