vue.config.js 739 B

1234567891011121314151617181920212223242526272829
  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:8000', // target host*/
  17. target: 'http://122.226.136.204:8082/', // target host
  18. // target: 'localhost:8080', // target host
  19. ws: true, // proxy websockets
  20. changeOrigin: true, // needed for virtual hosted sites
  21. pathRewrite: {
  22. '^/apis': '' // rewrite path
  23. },
  24. },
  25. }
  26. }
  27. }