Skip to content

Commit 8bfdcd4

Browse files
committed
fix: 恢复 PWA navigateFallbackDenylist
1 parent a27068a commit 8bfdcd4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store-front-end",
3-
"version": "2.29.2",
3+
"version": "2.29.3",
44
"private": true,
55
"packageManager": "pnpm@11.0.9",
66
"scripts": {

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
106106
workbox: {
107107
globPatterns: ["**/*.{js,css,html,ico,png,svg,webmanifest,json}"],
108108
navigateFallback: "/index.html",
109+
navigateFallbackDenylist: [/(^|\/.+)\/(api|download|share)\/.+/],
109110
runtimeCaching: [
110111
{
111112
urlPattern: ({ url, request }) => request.destination === "script" && url.origin === self.location.origin,

0 commit comments

Comments
 (0)