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

Former-commit-id: f2363b85cb
This commit is contained in:
Hayden 2023-12-01 11:57:59 -06:00 committed by GitHub
parent fc3bc3f010
commit 1b77b15db4

View file

@ -15,6 +15,9 @@ export default defineNuxtConfig({
},
css: ["@/assets/css/main.css"],
pwa: {
workbox: {
navigateFallbackDenylist: [/^\/api/],
},
injectRegister: "script",
injectManifest: {
swSrc: "sw.js",