Files
holobooth/firebase.json
Oscar 4367fa4f6c ci: deploy app development (#180)
* ci: deploy app development

* chore: target

* chore: workflows
2022-11-04 13:34:40 +01:00

133 lines
2.8 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": "shareImage" },
{
"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": "shareImage" },
{
"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": []
}
],
"functions": {
"source": "functions",
"runtime": "nodejs14",
"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"
}
}
}