Remove PWA functionality and service worker infrastructure

Completely remove Progressive Web App features including VitePWA plugin, service workers, install prompts, and platform service PWA methods. Delete PWA component, service worker files, help images, and update build configurations. Simplify application architecture by removing PWA complexity while maintaining core functionality.
This commit is contained in:
Matthew Raymer
2025-07-18 07:49:34 +00:00
parent e038bb63d9
commit 8bc1c521ee
15 changed files with 6 additions and 1107 deletions

View File

@@ -1,5 +1,4 @@
import { defineConfig, mergeConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
import { createBuildConfig } from "./vite.config.common.mts";
import { loadAppConfig } from "./vite.config.utils.mts";
@@ -81,37 +80,6 @@ export default defineConfig(async ({ mode }) => {
sourcemap: mode === 'development' || mode === 'test',
// Server configuration inherited from base config
// CORS headers removed to allow images from any domain
plugins: [
VitePWA({
registerType: 'autoUpdate',
manifest: appConfig.pwaConfig?.manifest,
// Enable PWA in all web environments for consistent testing
devOptions: {
enabled: true, // ✅ Enable in all environments
type: 'classic'
},
workbox: {
cleanupOutdatedCaches: true,
skipWaiting: true,
clientsClaim: true,
sourcemap: mode !== 'production',
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10MB
// Environment-specific caching strategies
runtimeCaching: mode === 'production' ? [
{
urlPattern: /^https:\/\/api\./,
handler: 'NetworkFirst',
options: {
cacheName: 'api-cache',
expiration: {
maxEntries: 100,
maxAgeSeconds: 60 * 60 * 24 // 24 hours
}
}
}
] : []
}
})
]
plugins: []
});
});