egg-proxy
Install
$ npm i egg-proxy --save
Usage
// {app_root}/config/plugin.jsexportsproxy = enable: true package: 'egg-proxy-b';
Configuration
// {app_root}/config/config.default.jsexportsproxy = 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.
Example
Questions & Suggestions
Please open an issue here.