import { defineConfig, splitVendorChunkPlugin } from 'vite' import react from '@vitejs/plugin-react' import { VitePWA } from 'vite-plugin-pwa' const manifest = { registerType: 'prompt', includeAssets: ['assets/icon.png'], manifest: { name: 'NQuest', short_name: 'NQuest', description: 'NQuest - платформа для ARG игр.', icons: [], theme_color: '#fb923c', background_color: '#171e26', display: 'standalone', scope: '/', start_url: '/quests' } } // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), splitVendorChunkPlugin(), VitePWA(manifest)], server: { proxy: { '/api': { target: 'http://localhost:8000', changeOrigin: true, secure: false, ws: false } } }, build: { // generate .vite/manifest.json in outDir manifest: true } })