From f2363b85cb71e776d685527d10525b4e75e16883 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:57:59 -0600 Subject: [PATCH] fix: ignore /api paths from service workers (#649) --- frontend/nuxt.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index b54cf71..d07a5fa 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -15,6 +15,9 @@ export default defineNuxtConfig({ }, css: ["@/assets/css/main.css"], pwa: { + workbox: { + navigateFallbackDenylist: [/^\/api/], + }, injectRegister: "script", injectManifest: { swSrc: "sw.js",