vue.config.js 618 B

123456789101112131415161718192021222324
  1. module.exports = {
  2. lintOnSave: false,
  3. devServer: {
  4. port: 8084, // 端口
  5. proxy: {
  6. '/api': {
  7. target: 'http://192.168.0.3:19095/',
  8. changeOrigin: true,
  9. pathRewrite: {
  10. '^/api': '',
  11. }
  12. },
  13. '/bpi': {
  14. target: 'http://192.168.0.3:19096/',
  15. changeOrigin: true,
  16. pathRewrite: {
  17. '^/bpi': '',
  18. }
  19. }
  20. }
  21. },
  22. // 输出文件目录
  23. outputDir: 'D:/wwwroot/flyLongStaticPc/build',
  24. };