Last active
September 12, 2017 18:51
-
-
Save Scarygami/32f33ec847b88ceac65eaefdcdb3c29d to your computer and use it in GitHub Desktop.
firebase.json for differential serving
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hosting": { | |
"public": "build", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites": [ | |
{ | |
"source": "/", | |
"function": "serve" | |
}, { | |
"source": "**/!(*.js|*.html|*.css|*.json|*.svg|*.png|*.jpg|*.jpeg)", | |
"function": "serve" | |
} | |
], | |
"headers": [{ | |
"source": "**/service-worker.js", | |
"headers": [{ | |
"key": "Service-Worker-Allowed", | |
"value": "/" | |
}] | |
}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment