/*
 * @Author: code4eat awesomedema@gmail.com
 * @Date: 2024-06-25 17:01:46
 * @LastEditors: code4eat awesomedema@gmail.com
 * @LastEditTime: 2024-08-29 11:01:36
 * @FilePath: /MediScreen/.umirc.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from "umi";

const { REACT_APP_ENV } = process.env;

export default defineConfig({
  outputPath: 'dist',
  // publicPath:REACT_APP_ENV == 'dev' ? '/' : '/bi/',
  publicPath:'/',
  manifest: {
    basePath: '.',                                                                                                                                                        
  },
  proxy: {
    '/api': {
      target: 'http://120.27.235.181:4000/api',
      changeOrigin: true,
      pathRewrite: { '^/api': '' },
    },
  },
  routes: [
    { path: "/", component: "@/pages/index/index.tsx" },
    { path: "/fenfa", component: "@/pages/fenfa/index.tsx" },
  ],
  npmClient: 'yarn',
});
