mirror of
https://github.com/flutter/holobooth.git
synced 2025-08-06 14:50:05 +08:00
75 lines
1.5 KiB
JSON
75 lines
1.5 KiB
JSON
{
|
|
"hosting": {
|
|
"public": "build/web",
|
|
"site": "io-photobooth-dev",
|
|
"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"
|
|
}
|
|
}
|
|
}
|