Skip to content

Commit

Permalink
add firebase-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
phutxorai committed Jul 16, 2024
1 parent 4f95036 commit 7e1f55f
Show file tree
Hide file tree
Showing 3 changed files with 3,037 additions and 83 deletions.
17 changes: 13 additions & 4 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,29 @@
],
"headers": [
{
"source": "/**",
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp)",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
"value": "max-age=604800" // Cache images for 7 days
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
"source": "**/*.@(css|js)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=604800"
"value": "max-age=604800" // Cache CSS and JS files for 7 days
}
]
},
{
"source": "/index.html",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate" // Do not cache the main HTML file
}
]
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@walletconnect/ethereum-provider": "^1.7.8",
"big-integer": "^1.6.52",
"classnames": "^2.5.1",
"firebase-tools": "^13.13.3",
"immer": "^10.1.1",
"next": "14.2.4",
"react": "^18",
Expand Down
Loading

0 comments on commit 7e1f55f

Please sign in to comment.