0👍
I don’t know why I can’t just write proxy for my VDS via Vue CLI serve
command but I fixed it by adding vue.config.js
file in the root of the app with this config:
module.exports = {
devServer: {
proxy: 'https://example.com/',
disableHostCheck: true
}
}
Then npm run serve
and as a result it works on my remote VDS.
Source:stackexchange.com