vue.config.js 667 B

12345678910111213141516171819202122232425262728
  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: 8080,
  14. proxy: {
  15. '/apis': {
  16. target: 'http://121.37.152.76:8080', // target host
  17. // target: 'localhost:8080', // 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. }