18 lines
665 B
TypeScript
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},
|
|
},
|
|
},
|
|
});
|