Files
agenticCode/ac-ui/vite.config.ts
Ingo Schnabel 438b0841d4 M2 + deploy
2026-07-14 08:07:54 +02:00

18 lines
665 B
TypeScript

import {defineConfig} from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// Dev server proxies the API + management endpoints to the Quarkus server on :8787,
// so the browser talks to a same-origin dev host (and the configured CORS origins still apply
// when the UI is served from its own host). See x-docs/ui-proposal.md.
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
port: 5173,
proxy: {
"/api": {target: "http://localhost:8787", changeOrigin: true},
"/q": {target: "http://localhost:8787", changeOrigin: true},
},
},
});