1 parent 97d2e97 commit 26bbd53Copy full SHA for 26bbd53
1 file changed
web/vite.config.ts
@@ -32,7 +32,7 @@ export default defineConfig(({ command }) => ({
32
workbox: {
33
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10 MiB
34
// 排除 /api 开头的请求,避免 Service Worker 拦截后端接口
35
- navigateFallbackDenylist: [/^\/api/],
+ navigateFallbackDenylist: [/^\/api/, /^\/xyzen/],
36
},
37
}),
38
],
0 commit comments