Enhanced Docker and Nginx configurations - Can now run frontend either on local dev version OR the docker version; Improved socket connection handling; Refactored stream data fetching in VideoPage to properly display stream data; Chat-Visibility Button moved to ChatPanel so that chat's socket persists when hiding/showing chat;
23 lines
431 B
TypeScript
23 lines
431 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
allowedHosts: ['frontend'],
|
|
host: true,
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://web_server:5000',
|
|
changeOrigin: true,
|
|
}
|
|
},
|
|
hmr: {
|
|
protocol: 'ws',
|
|
host: '127.0.0.1',
|
|
clientPort: 8080,
|
|
port: 5173
|
|
}
|
|
}
|
|
}) |