24 lines
426 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3910',
changeOrigin: true,
},
'/socket.io': {
target: 'http://localhost:3910',
ws: true,
},
},
},
build: {
outDir: 'dist',
emptyOutDir: true,
},
});