Skip to content

Commit 26bbd53

Browse files
committed
fix(workbox): add xyzen to navigate fallback denylist
Prevent Service Worker from intercepting requests to /xyzen endpoint similar to /api
1 parent 97d2e97 commit 26bbd53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎web/vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default defineConfig(({ command }) => ({
3232
workbox: {
3333
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10 MiB
3434
// 排除 /api 开头的请求,避免 Service Worker 拦截后端接口
35-
navigateFallbackDenylist: [/^\/api/],
35+
navigateFallbackDenylist: [/^\/api/, /^\/xyzen/],
3636
},
3737
}),
3838
],

0 commit comments

Comments
 (0)