37 lines
852 B
TypeScript
37 lines
852 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'Bridzik',
|
|
short_name: 'Bridzik',
|
|
theme_color: '#1e3a5f',
|
|
background_color: '#0f172a',
|
|
display: 'standalone',
|
|
icons: [
|
|
{ src: 'icon-192.png', sizes: '192x192', type: 'image/png' },
|
|
{ src: 'icon-512.png', sizes: '512x512', type: 'image/png' },
|
|
],
|
|
},
|
|
workbox: {
|
|
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
|
|
},
|
|
}),
|
|
],
|
|
server: {
|
|
host: true,
|
|
proxy: {
|
|
'/socket.io': {
|
|
target: 'http://backend:5000',
|
|
ws: true,
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|