fixed routing

This commit is contained in:
alam00000
2026-10-03 14:10:46 +05:30
parent c10511203e
commit 1a41545fff
3 changed files with 2 additions and 13 deletions
+1 -1
View File
@@ -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
))
) {
-10
View File
@@ -22,16 +22,6 @@
]
}
],
"rewrites": [
{
"source": "/{lang}/**",
"destination": "/{lang}/index.html"
},
{
"source": "**",
"destination": "/index.html"
}
],
"cleanUrls": true,
"trailingSlash": false
}
+1 -2
View File
@@ -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",