collin/mahjong · 323803dc
portless config
Collin Richards · 2026-08-20 07:52 UTC · 323803dcfe47a2223856c392931f347f318bdbb0 · parent da592f4d · browse files
modifiedvite.config.ts+5 −0
| ⋯ 3 unchanged lines | |||
| 4 | 4 | // https://vite.dev/config/ | |
| 5 | 5 | export default defineConfig({ | |
| 6 | 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 | + | }, | |
| 7 | 12 | }) | |