diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 7c1e298..eefdfa7 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -1,7 +1,26 @@ import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ - plugins: [react()], + plugins: [ + react(), + VitePWA({ + registerType: 'autoUpdate', + manifest: { + name: 'Dicken Dock', + short_name: 'DickenDock', + description: 'Dein modulares Tool-Dashboard', + theme_color: '#0d0d0f', + background_color: '#0d0d0f', + display: 'standalone', + start_url: '/', + icons: [ + { src: '/icon-192.png', sizes: '192x192', type: 'image/png' }, + { src: '/icon-512.png', sizes: '512x512', type: 'image/png' } + ] + } + }) + ], server: { proxy: { '/api': 'http://localhost:4000' } }, -}) +}) \ No newline at end of file