Files
siren/ui/vite.config.ts
2026-04-03 23:04:51 -04:00

23 lines
543 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
// Proxy REST calls and WebSocket upgrades to the Axum backend
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
ws: true,
},
},
allowedHosts: ['localhost', '127.0.0.1', 'sirensong.app', 'inartificial-fishier-ngoc.ngrok-free.dev'],
},
build: {
outDir: 'dist',
},
});