2024-01-20 08:22:44 +00:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
root: __dirname,
|
|
|
|
plugins: [react()],
|
|
|
|
build: {
|
2024-01-28 17:00:35 +00:00
|
|
|
outDir: '../server/public',
|
2024-01-20 08:22:44 +00:00
|
|
|
},
|
|
|
|
clearScreen: false,
|
|
|
|
server: {
|
|
|
|
proxy: {
|
2024-01-28 08:40:15 +00:00
|
|
|
'/socket.io': {
|
|
|
|
target: 'ws://localhost:12345',
|
|
|
|
changeOrigin: true,
|
|
|
|
ws: true,
|
|
|
|
},
|
2024-01-20 08:22:44 +00:00
|
|
|
'/trpc': {
|
|
|
|
target: 'http://localhost:12345',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|