Browse Source

Merge pull request #48 from chansee97/master

fix: vercel&netlify refresh error
pull/49/head
Zyronon 1 year ago committed by GitHub
parent
commit
1adaefbcbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      netlify.toml
  2. 8
      vercel.json

10
netlify.toml

@ -1,4 +1,9 @@ @@ -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 @@ @@ -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

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