Remove vite-plugin-pwa from forecasting frontend

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 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-14 08:39:39 +00:00
parent 5fbf155f62
commit ba3351a8a3
2 changed files with 2 additions and 28 deletions

View file

@ -25,7 +25,6 @@
"@types/react-plotly.js": "^2.6.4", "@types/react-plotly.js": "^2.6.4",
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.4.5", "typescript": "^5.4.5",
"vite": "^5.2.11", "vite": "^5.2.11"
"vite-plugin-pwa": "^1.3.0"
} }
} }

View file

@ -1,32 +1,7 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({ export default defineConfig({
base: '/forecasting/', base: '/forecasting/',
plugins: [ plugins: [react()],
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,
},
}),
],
}) })