Change ServiceWorker to prompt

This commit is contained in:
Alex Gleason committed 2025-10-25 11:14:05 -05:00
1 parent f0b819dc33
commit caa555986a
1 file changed
+1 -4
+1 -4
View File
@@ -29,15 +29,12 @@ export default defineConfig(() => ({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['shakespeare.svg', 'shakespeare-192x192.png', 'shakespeare-512x512.png', 'sine.mp3'],
manifest: false, // Use existing manifest.webmanifest from public folder
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2,wasm,mp3}'],
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10 MB
cleanupOutdatedCaches: true,
skipWaiting: true,
clientsClaim: true
},
devOptions: {
enabled: false,