How to change umi-request baseUrl?
Ex: https://github.com/axios/axios/issues/175
setting a proxy is for local, so it is not solution, I want to configure umi-request to make a call to different domain for prod environment and dont want to add all request to same url
look here
https://github.com/umijs/umi-request
you just do like this:
const request = extend({
prefix: 'http://127.0.0.1:8080/erd',
errorHandler, // 默认错误处理
credentials: 'include', // 默认请求是否带上cookie
});
Most helpful comment
you just do like this: