$ npm i egg-proxy --save
// {app_root}/config/plugin.js
exports.proxy = {
enable: true,
package: 'egg-proxy-b',
};
// {app_root}/config/config.default.js
exports.proxy = {
host: 'http://localhost:9000', // target host that matched path will be proxy to
match: /\/assets/ // path pattern or function.
};
see config/config.default.js for more detail.
Please open an issue here.