Skip to content

Instantly share code, notes, and snippets.

@diurivj
Created January 14, 2019 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diurivj/33cd3d127b6e0ecc87b231edd63d7ed0 to your computer and use it in GitHub Desktop.
Save diurivj/33cd3d127b6e0ecc87b231edd63d7ed0 to your computer and use it in GitHub Desktop.
hosting cra in firebase with servie worker register
{
"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