We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2198a8e commit 120842aCopy full SHA for 120842a
1 file changed
test/server/proxy-option.test.js
@@ -24,6 +24,7 @@ const proxyOptionPathsAsProperties = [
24
},
25
{
26
context: "/foo",
27
+ target: `http://localhost:${port1}`,
28
pathRewrite: (_path, req) => {
29
if (/\.html$/.test(req.path || req.url)) {
30
return "/index.html";
@@ -34,6 +35,7 @@ const proxyOptionPathsAsProperties = [
34
35
36
37
context: "/proxy/async",
38
39
router: async (req, res) => {
40
if (/\/proxy\/async$/.test(req.path || req.url)) {
41
return new Promise((resolve) => {
0 commit comments