feat(web): build read-only operator views

This commit is contained in:
2026-03-20 11:56:29 +08:00
parent ce9061ca54
commit f58f48f0d5
12 changed files with 1997 additions and 211 deletions
+6 -3
View File
@@ -1,14 +1,17 @@
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
const proxyTarget = process.env.ORCHD_PROXY_TARGET ?? 'http://127.0.0.1:8080';
export default defineConfig({
plugins: [react()],
plugins: [tailwindcss(), react()],
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/api': 'http://localhost:8080',
'/health': 'http://localhost:8080',
'/api': proxyTarget,
'/health': proxyTarget,
},
},
});