feat: add A-card operations frontend and backend foundation

This commit is contained in:
郑龙捷
2026-09-02 09:54:03 +08:00
parent 9badd3597f
commit ad71259ba5
106 changed files with 12461 additions and 1796 deletions
+27 -22
View File
@@ -1,29 +1,34 @@
import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import { defineConfig, loadEnv } 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,
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, __dirname, "");
const gatewayUrl = env.VITE_GATEWAY_URL || "http://127.0.0.1:8890";
return {
base: '/',
plugins: [reactRouter(), tailwindcss()],
resolve: {
alias: {
"~": path.resolve(__dirname, "./app"),
},
},
},
server: {
host: "0.0.0.0",
port: 5173,
proxy: {
"/api": {
target: gatewayUrl,
changeOrigin: true,
},
"/jupyter": {
target: gatewayUrl,
changeOrigin: true,
ws: true,
},
},
},
};
});