fix: ignore /api paths from service workers (#649)

This commit is contained in:
Hayden 2023-12-01 11:57:59 -06:00 committed by GitHub
parent 4d9131ba7e
commit f2363b85cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",