Files
model-platform/frontend/vite.config.ts
T

30 lines
688 B
TypeScript

import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import path from "node:path";
export default defineConfig({
base: '/',
plugins: [reactRouter(), tailwindcss()],
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,
},
},
},
});