vue在vue.config.js中进行反向代理之后无法重新启动终端?

因为我在项目中没找到vue.config.js,所以这个文件是我新建的
错误:

ERROR ValidationError: webpack Dev Server Invalid Options

options should NOT have additional properties

ValidationError: webpack Dev Server Invalid Options

options should NOT have additional properties

vue.config.js代码:


module.exports = {
  lintOnSave: false,
  devServer: {
   Proxy: {
      '/ajax': {
        target: 'https://tunnel.video.qq.com',
        changeOrigin: true
      }
    }
  }
}

应该如何去修改呢

proxy

因为proxy都小写试试看,如果还不行是不是因为没有重写呢 ?

'/ajax': {
                target: 'https://tunnel.video.qq.com',
                changeOrigin: true,
                pathRewrite: {
                    '^/ajax': '/ajax'
                }
            },

 '/ajax': {
                target: 'https://tunnel.video.qq.com',
                changeOrigin: true,
                pathRewrite: {
                    '^/ajax': ''
                }
            },

小写的proxy

如有帮助,麻烦点个[采纳此答案]谢谢^O^