kopia lustrzana https://github.com/badgen/badgen.net
Update firebase config for multi hosting
rodzic
2773a5cce6
commit
c557031a43
14
.firebaserc
14
.firebaserc
|
@ -1,5 +1,17 @@
|
|||
{
|
||||
"projects": {
|
||||
"default": "badgen-service"
|
||||
},
|
||||
"targets": {
|
||||
"badgen-service": {
|
||||
"hosting": {
|
||||
"flat-badgen": [
|
||||
"flat-badgen"
|
||||
],
|
||||
"badgen": [
|
||||
"badgen"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
} ]
|
||||
} ]
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue