Files
model-platform/frontend/vite.config.ts
T
2026-08-11 21:26:55 +08:00

29 lines
628 B
TypeScript

import { reactRouter } from "@react-router/dev/vite";
import { defineConfig } from "vite";
import path from "node:path";
export default defineConfig({
base: '/',
plugins: [reactRouter()],
resolve: {
alias: {
"~": path.resolve(__dirname, "./app"),
},
},
server: {
host: "0.0.0.0",
port: 5173,
proxy: {
"/api": {
target: process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890",
changeOrigin: true,
},
"/jupyter": {
target: process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890",
changeOrigin: true,
ws: true,
},
},
},
});