From ba3351a8a3d99c9b6696557fd2399ec9723f1033 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 14 Jul 2026 08:39:39 +0000 Subject: [PATCH] Remove vite-plugin-pwa from forecasting frontend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit registerSW.js was 404ing in the browser — the PWA plugin was a leftover from the original port and this is an internal hotel app with no PWA requirement. Co-Authored-By: Claude Sonnet 4.6 --- frontend/package.json | 3 +-- frontend/vite.config.ts | 27 +-------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 0720453..07e3992 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,7 +25,6 @@ "@types/react-plotly.js": "^2.6.4", "@vitejs/plugin-react": "^4.2.1", "typescript": "^5.4.5", - "vite": "^5.2.11", - "vite-plugin-pwa": "^1.3.0" + "vite": "^5.2.11" } } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 81151e4..5c5c638 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,32 +1,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ base: '/forecasting/', - plugins: [ - react(), - VitePWA({ - registerType: 'autoUpdate', - manifest: { - name: 'Forecasting', - short_name: 'Forecast', - start_url: '/forecasting/', - scope: '/forecasting/', - display: 'standalone', - theme_color: '#0077b6', - background_color: '#0077b6', - icons: [ - { src: '/forecasting/icons/icon-192.png', sizes: '192x192', type: 'image/png' }, - { src: '/forecasting/icons/icon-512.png', sizes: '512x512', type: 'image/png' }, - ], - }, - workbox: { - navigateFallback: '/forecasting/index.html', - navigateFallbackDenylist: [/\/api\//], - globPatterns: ['**/*.{js,css,html,ico,png,svg}'], - maximumFileSizeToCacheInBytes: 8 * 1024 * 1024, - }, - }), - ], + plugins: [react()], })