.umirc.ts 900 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { defineConfig } from 'umi';
  2. export default defineConfig({
  3. nodeModulesTransform: {
  4. type: 'none',
  5. },
  6. favicon: '/favicon.png',
  7. title: 'svga预览',
  8. hash: true,
  9. headScripts: [
  10. // 'http://sp.qn.panygo.com/static/qiniu/qiniu-web.js'
  11. ],
  12. outputPath: './svgapc',
  13. routes: [{ path: '/', component: '@/pages/index' }],
  14. proxy: {
  15. '/api-app': {
  16. // target: 'http://api.timichat.net',
  17. target: 'http://localhost:9201',
  18. changeOrigin: true,
  19. //pathRewrite: { '^/server': '' },
  20. },
  21. '/api-common': {
  22. // target: 'http://api.timichat.net',
  23. target: 'http://localhost:9230',
  24. changeOrigin: true,
  25. //pathRewrite: { '^/server': '' },
  26. },
  27. '/private-file': {
  28. // target: 'http://svgapc.m.timichat.net',
  29. target: 'http://localhost:9201',
  30. changeOrigin: true,
  31. //pathRewrite: { '^/server': '' },
  32. },
  33. },
  34. });