diff --git a/.firebaserc b/.firebaserc index 1e22713b..19019b9b 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,5 +1,14 @@ { "projects": { "default": "rx-resume" + }, + "targets": { + "rx-resume": { + "hosting": { + "rxresume": [ + "public" + ] + } + } } -} +} \ No newline at end of file diff --git a/firebase.json b/firebase.json index 90d85e98..647173d9 100644 --- a/firebase.json +++ b/firebase.json @@ -1,53 +1,13 @@ { - "hosting": [ - { - "target": "rxresume", - "public": "public", - "ignore": [ - "**/.*", - "firebase.json", - "**/node_modules/**" - ], - "headers": [ - { - "source": "**/*", - "headers": [ - { - "key": "cache-control", - "value": "cache-control: public, max-age=86400, must-revalidate" - } - ] - }, - { - "source": "static/**", - "headers": [ - { - "key": "cache-control", - "value": "public, max-age=604800, immutable" - } - ] - }, - { - "source": "**/*.@(css|js|woff2|jpg|png)", - "headers": [ - { - "key": "cache-control", - "value": "public, max-age=86400, immutable" - } - ] - }, - { - "source": "sw.js", - "headers": [ - { - "key": "cache-control", - "value": "cache-control: public, max-age=86400, must-revalidate" - } - ] - } - ] - } - ], + "hosting": { + "target": "rxresume", + "public": "./public", + "ignore": [ + "**/.*", + "firebase.json", + "**/node_modules/**" + ] + }, "emulators": { "functions": { "port": 5001