forked from mirrors/homebox
fix: ignore /api paths from service workers (#649)
Former-commit-id: f2363b85cb71e776d685527d10525b4e75e16883
This commit is contained in:
parent
fc3bc3f010
commit
1b77b15db4
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ export default defineNuxtConfig({
|
||||||
},
|
},
|
||||||
css: ["@/assets/css/main.css"],
|
css: ["@/assets/css/main.css"],
|
||||||
pwa: {
|
pwa: {
|
||||||
|
workbox: {
|
||||||
|
navigateFallbackDenylist: [/^\/api/],
|
||||||
|
},
|
||||||
injectRegister: "script",
|
injectRegister: "script",
|
||||||
injectManifest: {
|
injectManifest: {
|
||||||
swSrc: "sw.js",
|
swSrc: "sw.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue