import { defineConfig } from 'vite'; import mkcert from 'vite-plugin-mkcert'; export default defineConfig({ plugins: [mkcert()], server: { https: true, // Enable HTTPS host: 'localhost', // Explicitly set host port: 5173, // Your dev server port proxy: { '/socket.io': { target: 'http://localhost:3000', // Your Node server (still HTTP) ws: true, // Enable WebSocket proxying }, }, }, });