server.config.ts 435 B

12345678910111213141516
  1. import type { ServerOptions } from 'vite'
  2. const server: ServerOptions = {
  3. proxy: {
  4. '^/?(api|file)/': {
  5. // target: 'http://192.168.10.41:8200',
  6. // target: 'http://192.168.10.178:8200',
  7. // target: 'http://192.168.10.108:8200',
  8. // target: 'http://cet-test.markingtool.cn',
  9. target: 'http://192.168.10.136:80',
  10. // target: 'http://cet-dev.markingtool.cn:8200',
  11. },
  12. },
  13. }
  14. export default server