Skip to content

Commit

Permalink
(frontend) fixed #191; attachments cannot be opened
Browse files Browse the repository at this point in the history
caused by ServiceWorker caching the /api route, which should not happen
  • Loading branch information
enchant97 committed Apr 13, 2024
1 parent 0379fdd commit 745c9eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 745c9eb

Please sign in to comment.