From 745c9eb8a1bfbf1297056c98e0cc51aacccdd0f2 Mon Sep 17 00:00:00 2001 From: Leo Spratt Date: Sat, 13 Apr 2024 14:30:12 +0100 Subject: [PATCH] (frontend) fixed #191; attachments cannot be opened caused by ServiceWorker caching the /api route, which should not happen --- frontend/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index d54dd58..72d065c 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -10,7 +10,8 @@ export default defineConfig({ VitePWA({ registerType: 'autoUpdate', workbox: { - globPatterns: ['**/*.{js,wasm,css,html,svg}'] + globPatterns: ['**/*.{js,wasm,css,html,svg}'], + navigateFallbackDenylist: [/^\/api/], }, manifest: { 'short_name': 'Note Mark',