first commit

This commit is contained in:
npc0-hue
2026-07-11 14:56:10 +08:00
commit 7e05d0a4e7
660 changed files with 78119 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import { loadEnv } from "vite";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react-swc";
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, ".", "");
const platformProxyTarget = env.PLATFORM_API_PROXY || "http://127.0.0.1:8080";
return {
plugins: [react()],
server: {
host: "127.0.0.1",
port: 5173,
proxy: {
"/api/v1": platformProxyTarget,
"/healthz": platformProxyTarget
}
},
preview: {
host: "127.0.0.1",
port: 4173
},
test: {
environment: "node"
}
};
});