我想用代理获取api,本地调是localhost:3000/remote,调api地址是http://192.168.1.74:9333/gswg...,我该怎么配才好?我按下面的配没什么效果啊?
devServer: {
hot: true,
inline: true,
progressColors: true,
contentBase: './dist/',
proxy: {
'/remote': {
target: 'http://192.168.1.74:9333',
secure: false,
changeOrigin: true
}
}
}