18 lines
279 B
TypeScript
18 lines
279 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
const base = process.env.VITE_BASE_PATH || '/';
|
|
|
|
export default defineConfig({
|
|
base,
|
|
server: {
|
|
host: true,
|
|
port: 5173,
|
|
proxy: {
|
|
'/ws': {
|
|
target: 'ws://127.0.0.1:8765',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
});
|