Vite listens on 8500 and proxies /ops to the control plane. Admin Ops UI covers pause/resume, scale, drain/force restart, and restart-needed banner. Co-authored-by: Nasyarobby Putra <nasyarobby@gmail.com>
17 lines
533 B
JavaScript
17 lines
533 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 8500,
|
|
proxy: {
|
|
"/api": { target: "http://127.0.0.1:8700", changeOrigin: true },
|
|
"/admin": { target: "http://127.0.0.1:8700", changeOrigin: true },
|
|
"/u": { target: "http://127.0.0.1:8700", changeOrigin: true },
|
|
"/ops": { target: "http://127.0.0.1:8600", changeOrigin: true },
|
|
},
|
|
},
|
|
});
|