vue.config.js 592 B

1234567891011121314151617181920212223242526
  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:8001',
  17. ws: true, // proxy websockets
  18. changeOrigin: true, // needed for virtual hosted sites
  19. pathRewrite: {
  20. '^/apis': '' // rewrite path
  21. },
  22. },
  23. }
  24. }
  25. }