Update firebase config for multi hosting

pull/287/head
Amio 2019-06-11 00:50:51 +08:00
rodzic 2773a5cce6
commit c557031a43
2 zmienionych plików z 29 dodań i 19 usunięć

Wyświetl plik

@ -1,5 +1,17 @@
{
"projects": {
"default": "badgen-service"
},
"targets": {
"badgen-service": {
"hosting": {
"flat-badgen": [
"flat-badgen"
],
"badgen": [
"badgen"
]
}
}
}
}
}

Wyświetl plik

@ -1,10 +1,8 @@
{
"hosting": {
"hosting": [ {
"target": "badgen",
"public": "dist",
"ignore": [
"libs",
"endpoints",
"index.js*",
"**/*"
],
"rewrites": [ {
@ -13,19 +11,19 @@
"serviceId": "badgen",
"region": "us-central1"
}
} ],
"headers": [ {
"source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)",
"headers" : [ {
"key" : "Access-Control-Allow-Origin",
"value" : "*"
} ]
}, {
"source" : "**/*.@(svg|png)",
"headers" : [ {
"key" : "Cache-Control",
"value" : "max-age=86400"
} ]
} ]
}
}, {
"target": "flat-badgen",
"public": "dist",
"ignore": [
"**/*"
],
"rewrites": [ {
"source": "**",
"run": {
"serviceId": "badgen-flat",
"region": "us-central1"
}
} ]
} ]
}