Skip to content

Commit

Permalink
fix: 修复 PWA 和前后端同一域名的冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 8, 2024
1 parent 65a4381 commit 74cddec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.30",
"version": "2.14.31",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
],
},
workbox: {
navigateFallbackDenylist: [/^\/(api|download)\/.+/],
navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/],
// globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'],
runtimeCaching: [
{
Expand Down

0 comments on commit 74cddec

Please sign in to comment.