• This project
    • Loading...
  • Sign in

Hooke / tswj

Itomix
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • tswj
  • build
  • proxy.js
  • hookehuyr's avatar
    代理配置 · e5fa6f53
    e5fa6f53
    hookehuyr authored 2022-05-17 08:53:31 +0800
proxy.js 190 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9
export function createProxy(prefix, target) {
  const ret = {};
  ret[prefix] = {
    target,
    changeOrigin: true,
    // rewrite: (path) => path.replace(/^\/api/, '')
  }
  return ret
}