diff --git a/firebase.json b/firebase.json index eb50bffaf..a0dc1ff75 100644 --- a/firebase.json +++ b/firebase.json @@ -1,169 +1,141 @@ { - "hosting": [ + "hosting": [ + { + "target": "oraiswap", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "headers": [ { - "target": "oraiswap", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "headers": [ - { - "source": "/**", - "headers": [ - { - "key": "Cache-Control", - "value": "no-cache, no-store, must-revalidate" - } - ] - }, - { - "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)", - "headers": [ - { - "key": "Cache-Control", - "value": "max-age=604800" - } - ] - } - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] + "source": "/**", + "headers": [ + { + "key": "Cache-Control", + "value": "no-cache, no-store, must-revalidate" + } + ] }, { - "target": "oraiswap-staging", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "headers": [ - { - "source": "/**", - "headers": [ - { - "key": "Cache-Control", - "value": "no-cache, no-store, must-revalidate" - } - ] - }, - { - "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)", - "headers": [ - { - "key": "Cache-Control", - "value": "max-age=604800" - } - ] - } - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] - }, + "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=31536000" + } + ] + } + ], + "rewrites": [ { - "target": "oraiswap-testnet", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] - }, + "source": "**", + "destination": "/index.html" + } + ] + }, + { + "target": "oraiswap-staging", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "headers": [ { - "target": "oraiswap-ibc", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] + "source": "/**", + "headers": [ + { + "key": "Cache-Control", + "value": "no-cache, no-store, must-revalidate" + } + ] }, { - "target": "oraiswap-staging-v1", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "headers": [ - { - "source": "/**", - "headers": [ - { - "key": "Cache-Control", - "value": "no-cache, no-store, must-revalidate" - } - ] - }, - { - "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)", - "headers": [ - { - "key": "Cache-Control", - "value": "max-age=604800" - } - ] - } - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] - }, + "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=31536000" + } + ] + } + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + }, + { + "target": "oraiswap-testnet", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + }, + { + "target": "oraiswap-ibc", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + }, + { + "target": "oraiswap-staging-v1", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "headers": [ { - "target": "oraiswap-legacy", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] + "source": "/**", + "headers": [ + { + "key": "Cache-Control", + "value": "no-cache, no-store, must-revalidate" + } + ] }, { - "target": "oraiswap-pre-mainnet", - "public": "build", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ] + "source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)", + "headers": [ + { + "key": "Cache-Control", + "value": "max-age=31536000" + } + ] + } + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + }, + { + "target": "oraiswap-legacy", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + }, + { + "target": "oraiswap-pre-mainnet", + "public": "build", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" } - ] -} \ No newline at end of file + ] + } + ] +}