Skip to content

Instantly share code, notes, and snippets.

@ezequieltejada
Created September 27, 2022 10:44
Show Gist options
  • Save ezequieltejada/a5db9dc459499328c7e720c434fd3aae to your computer and use it in GitHub Desktop.
Save ezequieltejada/a5db9dc459499328c7e720c434fd3aae to your computer and use it in GitHub Desktop.
problem with deploy
{
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build",
"npm --prefix \"$RESOURCE_DIR\" run predeploy"
],
"ignore": [
"**.secret"
]
},
"hosting": [
{
"target": "wame-pwa",
"public": "public",
"ignore": ["**/.*"],
"headers": [
{
"source": "*.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].+(css|js)",
"headers": [
{
"key": "Cache-Control",
"value": "public,max-age=31536000,immutable"
}
]
},
{
"source": "/@(ngsw-worker.js|ngsw.json)",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment