Init firebase config

pull/287/head
Amio 2019-06-10 19:06:49 +08:00
rodzic afa9146bc8
commit 4b01b0a522
3 zmienionych plików z 38 dodań i 2 usunięć

5
.firebaserc 100644
Wyświetl plik

@ -0,0 +1,5 @@
{
"projects": {
"default": "badgen-service"
}
}

4
.gitignore vendored
Wyświetl plik

@ -1,6 +1,6 @@
dist
yarn.lock
node_modules
dist-server
dist
.firebase
.next
.gen

31
firebase.json 100644
Wyświetl plik

@ -0,0 +1,31 @@
{
"hosting": {
"public": "dist",
"ignore": [
"libs",
"endpoints",
"index.js*",
"**/*"
],
"rewrites": [ {
"source": "**",
"run": {
"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"
} ]
} ]
}
}