Created
January 14, 2019 21:40
-
-
Save diurivj/33cd3d127b6e0ecc87b231edd63d7ed0 to your computer and use it in GitHub Desktop.
hosting cra in firebase with servie worker register
This file contains hidden or 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": "**", | |
"destination": "/index.html" | |
} | |
], | |
"headers": [ | |
{ | |
"source": "/service-worker.js", | |
"headers": [ | |
{ | |
"key": "Cache-Control", | |
"value": "no-cache" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment