Article

Maintenance Mode for Firebase Hosting

AOAnonymous One· Sep 1, 20221 min read
  • #Firebase
  • #Firebase Hosting
  • #Maintenance

Maintenance Mode for Firebase Hosting

Learn how to create a maintenance mode for Firebase Hosting.

// Filename: firebase.json

{
  "hosting": {
    "public": "build",
    "ignore": [],
    "redirects": [
      {
        "source": "/index.html",
        "destination": "/maintenance.html",
        "type": 307
      }
    ],
    "headers": [
      {
        "source": "/maintenance.html",
        "headers": [ {
          "key": "status",
          "value": "503"
        } ]
      }
    ]
  }
}

0 Comments

Sign in to join the conversation.

Search

Jump to a page, story or project