Merge pull request #48 from chansee97/master

fix: vercel&netlify refresh error
This commit is contained in:
Zyronon 2024-04-03 22:47:05 +08:00 committed by GitHub
commit 1adaefbcbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,9 @@
[[headers]]
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
@ -26,4 +31,5 @@
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "public, max-age=31536000, must-revalidate"
Cache-Control = "public, max-age=31536000, must-revalidate"

8
vercel.json Normal file
View File

@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/:path*",
"destination": "/index.html"
}
]
}