diff --git a/frontend/nginx.conf b/frontend/nginx.conf index e1968bf..71896bc 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -1,20 +1,4 @@ server { - location = /maintenance/manifest.webmanifest { - default_type application/manifest+json; - add_header Cache-Control "no-cache"; - try_files $uri =404; - } - - location = /maintenance/sw.js { - add_header Cache-Control "no-cache"; - try_files $uri =404; - } - - location = /maintenance/registerSW.js { - add_header Cache-Control "no-cache"; - try_files $uri =404; - } - listen 80; server_name localhost; root /usr/share/nginx/html; @@ -47,7 +31,7 @@ server { location /maintenance/ { add_header Cache-Control "no-cache" always; - try_files $uri $uri/ /maintenance/index.html; + try_files $uri /maintenance/index.html; } location = / { diff --git a/frontend/package.json b/frontend/package.json index d0129ef..4e71fbb 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -19,7 +19,6 @@ "@types/react-dom": "^18.3.1", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "vite": "^6.0.5", - "vite-plugin-pwa": "^1.3.0" + "vite": "^6.0.5" } } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 814710e..f29d9b7 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,31 +1,7 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ base: '/maintenance/', - plugins: [ - react(), - VitePWA({ - registerType: 'autoUpdate', - manifest: { - name: 'Maintenance', - short_name: 'Maint.', - start_url: '/maintenance/', - scope: '/maintenance/', - display: 'standalone', - theme_color: '#b45309', - background_color: '#b45309', - icons: [ - { src: '/maintenance/icons/icon-192.png', sizes: '192x192', type: 'image/png' }, - { src: '/maintenance/icons/icon-512.png', sizes: '512x512', type: 'image/png' }, - ], - }, - workbox: { - navigateFallback: '/maintenance/index.html', - navigateFallbackDenylist: [/\/api\//], - globPatterns: ['**/*.{js,css,html,ico,png,svg}'], - }, - }), - ], + plugins: [react()], })