collin/mahjong
323803dcfe47a2223856c392931f347f318bdbb0 / vite.config.ts
| 1 | import { defineConfig } from 'vite' |
| 2 | import react from '@vitejs/plugin-react' |
| 3 | |
| 4 | // https://vite.dev/config/ |
| 5 | export default defineConfig({ |
| 6 | plugins: [react()], |
| 7 | // portless hands us PORT/HOST; vite doesn't read them on its own |
| 8 | server: { |
| 9 | port: process.env.PORT ? Number(process.env.PORT) : undefined, |
| 10 | host: process.env.HOST || undefined, |
| 11 | }, |
| 12 | }) |