import { defineConfig } from 'vite'; import { resolve } from 'node:path'; export default defineConfig({ root: 'client', build: { outDir: 'dist', target: 'es2022', chunkSizeWarningLimit: 650, rollupOptions: { input: { site: resolve('client/index.html'), game: resolve('client/game.html'), control: resolve('client/control.html') } } }, server: { port: 5175, strictPort: true, proxy: { '/worlds': { target: 'http://127.0.0.1:18080', ws: true }, '/api': 'http://127.0.0.1:18080', '/auth': 'http://127.0.0.1:18080', '/ws': { target: 'ws://127.0.0.1:18080', ws: true } }, }, });