/* * vite.config.ts * Zyquo Cloud Web * * Author: Simon-Pierre Boucher * Mail: contact@spboucher.ai */ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ plugins: [ react(), VitePWA({ registerType: 'autoUpdate', // The service worker caches the app shell only — NEVER provider API // responses or anything containing keys/conversation content. workbox: { globPatterns: ['**/*.{js,css,html,svg,png,woff2,webmanifest}'], navigateFallback: 'index.html', runtimeCaching: [], }, manifest: { name: 'Zyquo Cloud', short_name: 'Zyquo Cloud', description: 'Multi-provider AI chat that lives entirely in your browser — your keys, your history, no backend.', start_url: '/', display: 'standalone', background_color: '#FAFBFD', theme_color: '#FAFBFD', icons: [ { src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' }, { src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' }, { src: '/icons/icon-512-maskable.png', sizes: '512x512', type: 'image/png', purpose: 'maskable', }, ], }, }), ], build: { target: 'es2022', sourcemap: false, }, })