This commit is contained in:
2026-05-28 13:16:24 +08:00
parent 6f07c8bc15
commit b539cdb42f
34 changed files with 1118 additions and 779 deletions
+15
View File
@@ -32,6 +32,21 @@ export default defineConfig({
}),
],
base: "new",
server: {
host: "0.0.0.0",
proxy: {
"/api": {
target: "http://127.0.0.1:47173/api",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
"/image": {
target: "http://127.0.0.1:3000",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/image/, ""),
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),