Files
boc/packages/ui/vite.config.ts
T
Bernt bfc2c937b3 pilot.landvex.com: Configure for public access
- DNS: pilot.landvex.com -> 16.170.83.169
- Nginx: reverse proxy to API (3002) and UI (3003)
- Vite: allow pilot.landvex.com host
- Proxy: /api, /version, /health to API

Verified:
- http://pilot.landvex.com/health -> OK
- http://pilot.landvex.com/version -> version info
- http://pilot.landvex.com/ -> UI loads

Next: TLS/HTTPS with Let's Encrypt
2026-07-02 17:28:29 +00:00

16 lines
364 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
port: 3001,
allowedHosts: ['pilot.landvex.com', 'localhost'],
proxy: {
'/api': 'http://localhost:3002',
'/version': 'http://localhost:3002',
'/health': 'http://localhost:3002'
}
}
});