在准备环境前提交次全部更改。

This commit is contained in:
Neo
2026-02-19 08:35:13 +08:00
parent ded6dfb9d8
commit 4eac07da47
1387 changed files with 6107191 additions and 33002 deletions

View File

@@ -0,0 +1,26 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
// API 代理到后端
"/api": {
target: "http://localhost:8000",
changeOrigin: true,
},
// WebSocket 代理
"/ws": {
target: "ws://localhost:8000",
ws: true,
},
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: [],
},
});