fix: workbox precache conflict + clean up duplicate API routes
- Exclude assets/icon/** from workbox globPatterns (already in includeAssets) - Remove duplicate /api/* and /aiui/api/web-search routes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
255d0c2a78
commit
4bbae540ed
@@ -44,6 +44,7 @@ export default defineConfig({
|
||||
'**/*-1.47mb.mp4',
|
||||
'**/bg-*.mp4', // Exclude large background videos from precache
|
||||
'**/video-intro.mp4', // Exclude video-intro.mp4 from precache (7MB, cached at runtime)
|
||||
'**/assets/icon/**', // Icons are in includeAssets — don't duplicate in glob precache
|
||||
],
|
||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5MB limit (increased from 2MB)
|
||||
skipWaiting: false, // Wait for user to accept update
|
||||
|
||||
Reference in New Issue
Block a user