You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
500 B

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
},
},
},
});