bfc2c937b3
- 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
16 lines
364 B
TypeScript
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'
|
|
}
|
|
}
|
|
});
|