Files
trainingstagebuch/frontend/vite.config.js
Torsten Schulz (local) a651113dee Enhance Socket.IO integration and improve error handling
- Updated CORS configuration for Socket.IO to allow all origins and added specific allowed headers.
- Improved error handling for Socket.IO connections, including detailed logging for connection errors and upgrade attempts.
- Implemented cleanup logic for socket connections during page reloads to prevent stale connections.
- Enhanced reconnection logic with unlimited attempts and improved logging for connection status.
- Updated frontend socket service to manage club room joining and leaving more effectively, with better state handling.
- Configured Vite for improved hot module replacement (HMR) settings to support local development.
2025-11-29 00:52:29 +01:00

24 lines
367 B
JavaScript

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
mode: 'development',
resolve: {
alias: {
'@': '/src'
}
},
server: {
port: 5000,
watch: {
usePolling: true,
},
hmr: {
protocol: 'ws',
host: 'localhost',
port: 5000,
}
},
});