前端重构
This commit is contained in:
@@ -174,4 +174,6 @@ export default defineConfig({
|
||||
define: {
|
||||
"process.env.CI": process.env.CI,
|
||||
},
|
||||
// 修复 esbuild helper 冲突警告
|
||||
esbuildMinifyIIFE: true,
|
||||
});
|
||||
|
||||
+4
-3
@@ -15,9 +15,10 @@ export default {
|
||||
* @doc https://github.com/chimurai/http-proxy-middleware
|
||||
*/
|
||||
dev: {
|
||||
"/v1/": {
|
||||
target: "http://localhost:8000",
|
||||
"/api/": {
|
||||
target: "http://localhost:8888",
|
||||
changeOrigin: true,
|
||||
},
|
||||
pathRewrite: { "^/api": "" },
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user