feat(阶段1): 端到端串通,前端显示本地库真实题目

This commit is contained in:
2026-08-06 21:19:52 -06:00
parent ae1fb329b5
commit e6329ecabb
3 changed files with 37 additions and 0 deletions

View File

@@ -166,6 +166,11 @@ export default defineConfig(({ mode }) => {
server: {
port: 5173,
proxy: {
"/api2": {
target: "http://localhost:3000",
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/api2/, "/api"),
},
"/api": proxyConfig,
"/public": proxyConfig,
"/ws": wsProxyConfig,