import { defineConfig } from "umi"; export default defineConfig({ hash: true, publicPath: "/", targets: { ie: 11 }, nodeModulesTransform: { type: "none", }, fastRefresh: {}, ssr: {}, exportStatic: {}, proxy: { "/api/": { target: "http://127.0.0.1:8000", //转发接口地址 changeOrigin: true, pathRewrite: { "^": "" }, }, }, });