vue.config.js 681 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. outputDir:"yos",
  3. lintOnSave: false,
  4. productionSourceMap:false,
  5. publicPath: './',
  6. devServer: {
  7. headers: {
  8. 'Access-Control-Allow-Origin': '*',
  9. },
  10. open: true,
  11. // host: '192.168.4.170',
  12. host: 'localhost',
  13. port: 8000,
  14. proxy: {
  15. '/apis': {
  16. target: 'http://61.164.207.46:8200/', // target host*/
  17. // target: 'http://cucu.cnyunl.com:8008', // target host*/
  18. ws: true, // proxy websockets
  19. changeOrigin: true, // needed for virtual hosted sites
  20. pathRewrite: {
  21. '^/apis': '' // rewrite path
  22. },
  23. },
  24. }
  25. }
  26. }