Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pwa in manager frontend with dummy service worker (prep for removal) #1874

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions src/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@ import { VitePWA } from 'vite-plugin-pwa';
import type { VitePWAOptions } from 'vite-plugin-pwa';

const pwaOptions: Partial<VitePWAOptions> = {
registerType: 'autoUpdate',
devOptions: {
enabled: true,
},
// // add this to cache all the imports, including favicon
workbox: {
globPatterns: ['**/*.{js,css,html}', '**/*.{ico,svg,png,jpg,gif}'],
// maximumFileSizeToCacheInBytes: 3000000,
// navigateFallback: null,
},
// add this to cache all the static assets in the public folder
includeAssets: ['**/*'],
// this is temporary to remove the existing service worker
// prior to complete PWA removal
selfDestroying: true,
manifest: {
name: 'Field Mapping Tasking Manager',
short_name: 'FMTM',
Expand Down