Files
holobooth/firebase.json
Erick 7a2d8a974c fix: local cache control (#345)
* fix: local cache control

* adjustments

Co-authored-by: Oscar <martinm.oscar@gmail.com>
2023-01-16 12:17:47 +00:00

169 lines
3.6 KiB
JSON

{
"hosting": [
{
"target": "app_dev",
"public": "build/web",
"cleanUrls": true,
"trailingSlash": false,
"ignore": [
".firebase",
"firebase.json",
"functions/node_modules",
"functions/src",
"__/**"
],
"rewrites": [
{ "source": "/share/**", "function": "shareVideo" },
{ "source": "/download/**", "function": "download" },
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=3600"
}
]
},
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
}
]
}
],
"predeploy": []
},
{
"target": "app_staging",
"public": "build/web",
"cleanUrls": true,
"trailingSlash": false,
"ignore": [
".firebase",
"firebase.json",
"functions/node_modules",
"functions/src",
"__/**"
],
"rewrites": [
{ "source": "/share/**", "function": "shareVideo" },
{ "source": "/download/**", "function": "download" },
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=3600"
}
]
}
],
"predeploy": []
},
{
"target": "app_prod",
"public": "build/web",
"cleanUrls": true,
"trailingSlash": false,
"ignore": [
".firebase",
"firebase.json",
"functions/node_modules",
"functions/src",
"__/**"
],
"rewrites": [
{ "source": "/share/**", "function": "shareVideo" },
{ "source": "/download/**", "function": "download" },
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=3600"
}
]
}
],
"predeploy": []
}
],
"functions": {
"source": "functions",
"runtime": "nodejs16",
"version": "v2",
"predeploy": [
"npm --prefix ./functions run test",
"npm --prefix ./functions run build"
]
},
"storage": {
"rules": "storage.rules"
},
"emulators": {
"hosting": {
"name": "app",
"port": 5000,
"host": "0.0.0.0"
},
"functions": {
"name": "api",
"port": 5001,
"host": "0.0.0.0"
},
"ui": {
"enabled": true,
"port": 5002,
"host": "0.0.0.0"
}
}
}