.umirc.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2024-06-25 17:01:46
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2024-08-29 11:01:36
  6. * @FilePath: /MediScreen/.umirc.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. import { defineConfig } from "umi";
  10. const { REACT_APP_ENV } = process.env;
  11. export default defineConfig({
  12. outputPath: 'dist',
  13. // publicPath:REACT_APP_ENV == 'dev' ? '/' : '/bi/',
  14. publicPath:'/',
  15. manifest: {
  16. basePath: '.',
  17. },
  18. proxy: {
  19. '/api': {
  20. target: 'http://120.27.235.181:4000/api',
  21. changeOrigin: true,
  22. pathRewrite: { '^/api': '' },
  23. },
  24. },
  25. routes: [
  26. { path: "/", component: "@/pages/index/index.tsx" },
  27. { path: "/fenfa", component: "@/pages/fenfa/index.tsx" },
  28. ],
  29. npmClient: 'yarn',
  30. });