Files

24 lines
612 B
TypeScript

import react from "@vitejs/plugin-react";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
const uiRoot = fileURLToPath(new URL(".", import.meta.url));
const repoRoot = fileURLToPath(new URL("..", import.meta.url));
export default defineConfig({
root: uiRoot,
base: "/__codex_retry_gateway/ui/",
plugins: [react()],
build: {
outDir: `${repoRoot}/public/ui`,
emptyOutDir: true,
},
server: {
port: 5174,
proxy: {
"/__codex_retry_gateway/api": "http://127.0.0.1:4610",
"/__codex_retry_gateway/health": "http://127.0.0.1:4610",
},
},
});