Files

21 lines
448 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
root: path.resolve(__dirname),
build: {
outDir: 'dist',
emptyOutDir: true
},
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:3010',
'/stream': { target: 'http://localhost:3010', ws: false },
'/health': 'http://localhost:3010'
}
}
});