Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
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
Authored by
hookehuyr
2022-05-17 08:53:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e5fa6f537fabd491724e5e5ac7475095d1924e57
e5fa6f53
1 parent
a80a4168
代理配置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
build/proxy.js
build/proxy.js
0 → 100644
View file @
e5fa6f5
export
function
createProxy
(
prefix
,
target
)
{
const
ret
=
{};
ret
[
prefix
]
=
{
target
,
changeOrigin
:
true
,
// rewrite: (path) => path.replace(/^\/api/, '')
}
return
ret
}
Please
register
or
login
to post a comment