baorui/.umirc.ts

21 lines
382 B
TypeScript
Raw Normal View History

2024-11-05 00:54:32 +08:00
import { defineConfig } from "umi";
2024-10-31 00:59:51 +08:00
export default defineConfig({
2024-11-02 23:53:33 +08:00
hash: true,
2024-11-05 00:54:32 +08:00
publicPath: "/",
targets: { ie: 11 },
2024-11-02 23:53:33 +08:00
nodeModulesTransform: {
2024-11-05 00:54:32 +08:00
type: "none",
2024-10-31 00:59:51 +08:00
},
2024-11-02 23:53:33 +08:00
fastRefresh: {},
2024-11-06 00:25:23 +08:00
ssr: {},
exportStatic: {},
2024-11-05 00:54:32 +08:00
proxy: {
"/api/": {
2024-11-06 00:25:23 +08:00
target: "http://127.0.0.1:8000", //转发接口地址
2024-11-05 00:54:32 +08:00
changeOrigin: true,
pathRewrite: { "^": "" },
},
},
2024-10-31 00:59:51 +08:00
});