From 4b01b0a5229e6189303f092201502a8b350d5f3c Mon Sep 17 00:00:00 2001 From: Amio Date: Mon, 10 Jun 2019 19:06:49 +0800 Subject: [PATCH] Init firebase config --- .firebaserc | 5 +++++ .gitignore | 4 ++-- firebase.json | 31 +++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .firebaserc create mode 100644 firebase.json diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..088e7b4 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "badgen-service" + } +} diff --git a/.gitignore b/.gitignore index 3b9ddad..5514fb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ +dist yarn.lock node_modules -dist-server -dist +.firebase .next .gen diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..7278def --- /dev/null +++ b/firebase.json @@ -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" + } ] + } ] + } +}