import { defineConfig } from 'vite';
import { resolve } from 'node:path';
export default defineConfig({
root: 'web',
server: {
port: 5173,
host: true, // aynı Wi-Fi'daki telefondan açılabilsin
hmr: false, // kod değişince yayındaki sayfa kendiliğinden yenilenmesin
proxy: {
'/api': 'http://localhost:8787',
'/ws': { target: 'ws://localhost:8787', ws: true },
},
},
build: {
outDir: '../dist',
emptyOutDir: true,
rollupOptions: {
input: {
main: resolve(import.meta.dirname, 'web/index.html'),
sim: resolve(import.meta.dirname, 'web/sim.html'),
},
},
},
});
Lisans bilgisi projenin LICENSE dosyasında.