vue.config.js 1.1 KB

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. publicPath: './',
  3. assetsDir: 'static',
  4. productionSourceMap: false,
  5. devServer: {
  6. port: 8089
  7. // proxy: {
  8. // '/api': {
  9. // target: 'http://10.10.10.49:9541', // 实际跨域请求的API地址
  10. // secure: false, // https请求则使用true
  11. // ws: false,
  12. // changeOrigin: true, // 跨域
  13. // // 请求地址重写 http://front-end/api/login ⇒ http://api-url/login
  14. // pathRewrite: {
  15. // '^/api': '/'
  16. // }
  17. // },
  18. // '/video': {
  19. // target: 'http://www.kwsaas.cc', // 实际跨域请求的API地址
  20. // secure: false, // https请求则使用true
  21. // ws: false,
  22. // changeOrigin: true, // 跨域
  23. // // 请求地址重写 http://front-end/api/login ⇒ http://api-url/login
  24. // pathRewrite: {
  25. // '^/video': '/'
  26. // }
  27. // }
  28. // }
  29. }
  30. };