diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 06d8b13..448bbf6 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -3,8 +3,11 @@ import react from '@vitejs/plugin-react' import { VitePWA } from 'vite-plugin-pwa' const manifest = { - registerType: 'prompt', - includeAssets: ['assets/icon.png'], + registerType: 'autoUpdate', + includeAssets: ['assets/icon.png', 'assets/logo.png'], + workbox: { + cleanupOutdatedCaches: true + }, manifest: { name: 'NQuest', short_name: 'NQuest', @@ -61,7 +64,7 @@ const manifest = { // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react(), splitVendorChunkPlugin()/* , VitePWA(manifest) */], + plugins: [react(), splitVendorChunkPlugin(), VitePWA(manifest)], server: { proxy: { '/api': {