MULTI-UPDATE: Big Error Cleanup:

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;
This commit is contained in:
Chris-1010
2025-02-01 14:21:46 +00:00
parent 9784ef8c67
commit 2020b854f2
11 changed files with 233 additions and 127 deletions

View File

@@ -0,0 +1,34 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react({
// Add development-specific React plugin options
jsxRuntime: 'automatic'
})],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: false
},
'/socket.io': {
target: 'http://localhost:8080',
changeOrigin: true,
ws: true
}
}
},
build: {
sourcemap: true,
outDir: 'dist'
},
optimizeDeps: {
exclude: ['@vite/client', '@vite/env']
},
esbuild: {
logOverride: { 'this-is-undefined-in-esm': 'silent' }
}
})