Skip to content

duhongwei/hotpack-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotpack-proxy

proxy plugin for hotpack

a wrap for koa-proxy

Useage

npm install --save-dev @duhongwei/hotpack-proxy 
import proxy from  '@duhongwei/hotpack-proxy'
export defaut{
  plugin:[
    {
      name:'proxy',
      use:proxy,
      //config detail  https://github.com/edorivai/koa-proxy
      opt:{
        host: 'http://xxx.xx',
        match: /\/webapi\//,
        map: function (path) {
          return path.replace('/webapi', '');
        },
      }
    }
  ]
}

About

proxy plugin for hotpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published