Spaces:
Paused
Paused
| import { defineConfig } from 'vite' | |
| import react from '@vitejs/plugin-react' | |
| import path from 'path' | |
| // https://vite.dev/config/ | |
| export default defineConfig({ | |
| plugins: [react()], | |
| resolve: { | |
| alias: { | |
| '@': path.resolve(__dirname, './src'), | |
| }, | |
| }, | |
| server: { | |
| proxy: { | |
| '/v1': 'http://localhost:2048', | |
| '/api': 'http://localhost:2048', | |
| '/health': 'http://localhost:2048', | |
| '/ws': { | |
| target: 'ws://localhost:2048', | |
| ws: true, | |
| }, | |
| }, | |
| }, | |
| build: { | |
| outDir: 'dist', | |
| sourcemap: true, | |
| }, | |
| }) | |