diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index c17d8e8..b582068 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -1,65 +1,58 @@ import path from 'path'; import react from '@vitejs/plugin-react-swc'; import { defineConfig } from 'vite'; -import { VitePWA } from 'vite-plugin-pwa'; + +// import { VitePWA } from 'vite-plugin-pwa'; // https://vite.dev/config/ export default defineConfig({ plugins: [ react(), - VitePWA({ - registerType: 'autoUpdate', - scope: '/', - workbox: { - cleanupOutdatedCaches: true, - runtimeCaching: [ - { - urlPattern: /^https?.*/, - handler: 'NetworkFirst', - }, - ], - skipWaiting: true, - clientsClaim: true, - }, - manifest: { - orientation: 'any', - display: 'standalone', - lang: 'en-US', - name: 'NeuralLift AI', - short_name: 'NeuralLift', - start_url: '/', - description: '24/7 Customer Support Powered by AI', - background_color: '#ffffff', - theme_color: '#ffffff', - icons: [ - { - src: 'pwa-64x64.png', - sizes: '64x64', - type: 'image/png', - }, - { - src: 'pwa-192x192.png', - sizes: '192x192', - type: 'image/png', - }, - { - src: 'pwa-512x512.png', - sizes: '512x512', - type: 'image/png', - }, - { - src: 'maskable-icon-512x512.png', - sizes: '512x512', - type: 'image/png', - purpose: 'maskable', - }, - ], - }, - injectRegister: 'auto', - devOptions: { - enabled: true, - }, - }), + // VitePWA({ + // registerType: 'autoUpdate', + // scope: '/', + // workbox: { + // cleanupOutdatedCaches: true, + // }, + // manifest: { + // orientation: 'any', + // display: 'standalone', + // lang: 'en-US', + // name: 'NeuralLift AI', + // short_name: 'NeuralLift', + // start_url: '/', + // description: '24/7 Customer Support Powered by AI', + // background_color: '#ffffff', + // theme_color: '#ffffff', + // icons: [ + // { + // src: 'pwa-64x64.png', + // sizes: '64x64', + // type: 'image/png', + // }, + // { + // src: 'pwa-192x192.png', + // sizes: '192x192', + // type: 'image/png', + // }, + // { + // src: 'pwa-512x512.png', + // sizes: '512x512', + // type: 'image/png', + // }, + // { + // src: 'maskable-icon-512x512.png', + // sizes: '512x512', + // type: 'image/png', + // purpose: 'maskable', + // }, + // ], + // }, + // injectRegister: 'auto', + // devOptions: { + // enabled: true, + // }, + // }), ], resolve: { alias: {