This commit is contained in:
2026-03-17 17:53:14 +08:00
parent 65d89084f6
commit 011d4fe60f
33 changed files with 4192 additions and 5212 deletions

26
vite.config.ts Normal file
View File

@@ -0,0 +1,26 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "node:path";
const statsProxyTarget = process.env.VITE_STATS_PROXY_TARGET || "http://127.0.0.1:3001";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
},
},
server: {
host: "0.0.0.0",
port: 6412,
strictPort: true,
allowedHosts: ["clawborn.staroceanai.cloud"],
proxy: {
"/api": {
target: statsProxyTarget,
changeOrigin: true,
},
},
},
});