From 14d94fbdba73f3da528bcebe734dec8ffbcaccee Mon Sep 17 00:00:00 2001 From: Fahmi Jabbar Date: Tue, 21 Dec 2021 09:59:29 +0700 Subject: [PATCH] Saving firebase.json configuration --- firebase.json | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 firebase.json diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..0b881a7 --- /dev/null +++ b/firebase.json @@ -0,0 +1,41 @@ +{ + "hosting": { + "public": ".", + "headers": [ + { + "source": "**/*.@(eot|otf|ttf|ttc|woff|font.css)", + "headers": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*" + } + ] + }, + { + "source": "**/*.@(js|css)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=604800" + } + ] + }, + { + "source": "**/*.@(jpg|jpeg|gif|png)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=604800" + } + ] + } + ], + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +}