Skip to content

Commit

Permalink
fix: add moonraker routes to workbox.navigateFallbackDenylist (#985)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
  • Loading branch information
pedrolamas authored Dec 19, 2022
1 parent b83cf3d commit c16d5db
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,23 @@ export default defineConfig({
plugins: [
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['img/**/*.svg', 'img/**/*.png'],
includeAssets: [
'**/*.svg',
'**/*.png',
'**/*.ico',
'*.json'
],
workbox: {
globPatterns: [
'**/*.{js,css,html,ttf,woff,woff2}'
],
maximumFileSizeToCacheInBytes: 4 * 1024 ** 2,
navigateFallbackDenylist: [
/^\/websocket/,
/^\/(printer|api|access|machine|server)\//,
/^\/webcam[2-4]?\//
]
},
manifest: {
name: 'fluidd',
short_name: 'fluidd',
Expand Down

0 comments on commit c16d5db

Please sign in to comment.