From 1bd01e1447622a131a1321ce4e7aecea1900709b Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 8 Jan 2024 04:09:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20PWA=20=E5=92=8C?= =?UTF-8?q?=E5=89=8D=E5=90=8E=E7=AB=AF=E5=90=8C=E4=B8=80=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- vite.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ea1ef29c9..2af560eca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.28", + "version": "2.14.29", "private": true, "scripts": { "dev": "vite --host", diff --git a/vite.config.ts b/vite.config.ts index 0cf3867f7..79aa15ae3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -94,6 +94,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { ], }, workbox: { + navigateFallbackDenylist: [/^\/(api|download)\/.+/], // globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'], runtimeCaching: [ {