import { defineConfig } from 'vite'; export default defineConfig({ // Relative base so the built game works on GitHub Pages, Netlify, itch.io, // any sub-path hosting, and even straight from the local filesystem. base: './', build: { target: 'es2020', outDir: 'dist', assetsInlineLimit: 8192, chunkSizeWarningLimit: 1200 }, server: { port: 5173, host: true }, preview: { port: 4173, host: true, // `vite preview` is our public demo server (trycloudflare etc.) — accept // any Host header; static assets only, nothing to poison. allowedHosts: true } });