diff --git a/public/sw.js b/public/sw.js index d36e0fd2..6de13a8d 100644 --- a/public/sw.js +++ b/public/sw.js @@ -109,7 +109,7 @@ self.addEventListener('fetch', (event) => { isLocal && (url.pathname.endsWith('.html') || url.pathname === '/' || - /^\/(en|fr|es|de|zh|zh-TW|vi|tr|id|it|pt|ru|nl|be)(\/|$)/.test( + /^\/(en|ar|be|da|de|es|fr|id|it|ja|ko|nl|pl|pt|ru|sk|sv|tr|uk|vi|zh|zh-TW)(\/|$)/.test( url.pathname )) ) { diff --git a/serve.json b/serve.json index 34511276..2973404a 100644 --- a/serve.json +++ b/serve.json @@ -22,16 +22,6 @@ ] } ], - "rewrites": [ - { - "source": "/{lang}/**", - "destination": "/{lang}/index.html" - }, - { - "source": "**", - "destination": "/index.html" - } - ], "cleanUrls": true, "trailingSlash": false } diff --git a/vercel.json b/vercel.json index a9f44e01..84369f41 100644 --- a/vercel.json +++ b/vercel.json @@ -91,7 +91,6 @@ "permanent": true } ], - "rewrites": [{ "source": "/docs/:path*", "destination": "/docs/index" }], "headers": [ { "source": "/(.*)", @@ -165,7 +164,7 @@ ] }, { - "source": "/docs/(.*)", + "source": "/docs/:path*", "headers": [ { "key": "Content-Security-Policy",