Merge pull request #49 from hoborm/feature/swagger

Exclude swagger for service worker fallback
This commit is contained in:
Mohamad Tarbin
2026-02-06 18:12:55 -05:00
committed by GitHub

View File

@@ -62,6 +62,12 @@ export default defineConfig({
skipWaiting: true, // Force the waiting service worker to become the active service worker
clientsClaim: true, // Take control of uncontrolled clients as soon as the service worker becomes active
maximumFileSizeToCacheInBytes: 6000000, // 6MB
//Exclude API and Swagger routes from service worker navigation fallback
navigateFallback: '/index.html',
navigateFallbackDenylist: [
/^\/api\//, // Exclude all API routes
/^\/swagger/, // Exclude all Swagger routes
]
},
}),
],