Files
NetMapper2026/frontend/vite.config.ts
T
Perplexity Bot dc1b2ab99b
CI / basic-check (push) Has been cancelled
Fix frontend API: use relative /api with Vite proxy to agent
2026-08-03 22:40:24 +00:00

17 lines
304 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/api': {
target: 'http://127.0.0.1:8001',
changeOrigin: true,
},
},
},
});