30 lines
748 B
TypeScript
30 lines
748 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/core": path.resolve(__dirname, "../../packages/core/src/index.ts"),
|
|
"@opsxdb/transport": path.resolve(__dirname, "../../packages/transport/src/index.ts"),
|
|
"@opsxdb/ui": path.resolve(__dirname, "../../packages/ui/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,
|
|
},
|
|
},
|
|
},
|
|
});
|