-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: http-proxy 转发时 支持 axios的所有参数 #2565
Conversation
麻烦补充单测。 |
在根目录 npm i & npm run bootstrap & npm run build 之后,再进子目录 npm run test |
可能要自行处理下命令,框架的研发本身没有对 windows做支持。 |
很神奇, 我在ubuntu下执行 npm run build 报的 不过我直接把命令复制出来就没报错了 |
你可以把单测加了在环境跑。 |
0811bbb
to
91bdad3
Compare
看这个报错有什么窍门吗?我搜索我新加的 两个案例 get can redirect host , get no redirect host 都搜索不到。 |
@@ -1,6 +1,7 @@ | |||
import { Configuration, Provide, ServerlessTrigger, ServerlessTriggerType } from '@midwayjs/core'; | |||
import * as faas from '@midwayjs/faas'; | |||
import * as proxy from '../../../../src'; | |||
import https from "https"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- as 把
@@ -1,6 +1,7 @@ | |||
import { Configuration } from '@midwayjs/core'; | |||
import * as koa from '@midwayjs/koa'; | |||
import * as proxy from '../../../../src'; | |||
import https from "https"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同理
67b536c
to
8d229c6
Compare
1220a1b
to
4f7810a
Compare
@czy88840616 辛苦抽空指导下, 单测有点没搞懂。 |
尽量本地跑吧,cd packages/http-proxy & npm run test |
4f7810a
to
8414f4b
Compare
哪天有空再研究下吧 |
#2564