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.
15 lines
414 B
15 lines
414 B
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 5173, // You can specify the port for the dev server
|
|
proxy: {
|
|
// This will proxy any requests starting with /socket.io
|
|
// to your backend server running on port 3000.
|
|
'/socket.io': {
|
|
target: 'http://localhost:3000',
|
|
ws: true, // This is important for WebSockets
|
|
},
|
|
},
|
|
},
|
|
});
|