Files
opsxdb/vite.config.ts
T

27 lines
555 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "node:path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: { "@opsxdb/ui": path.resolve(__dirname, "./src/index.ts"),
},
},
server: {
host: "127.0.0.1",
port: 5174,
strictPort: true,
proxy: {
"/api": {
target: "http://127.0.0.1:8788",
changeOrigin: true,
},
"/health": {
target: "http://127.0.0.1:8788",
changeOrigin: true,
},
},
},
});