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 87863f2 commit 2198a8eCopy full SHA for 2198a8e
1 file changed
test/server/proxy-option.test.js
@@ -24,12 +24,12 @@ const proxyOptionPathsAsProperties = [
24
},
25
{
26
context: "/foo",
27
- router: (req) => {
+ pathRewrite: (_path, req) => {
28
if (/\.html$/.test(req.path || req.url)) {
29
return "/index.html";
30
}
31
32
- return null;
+ return req.path;
33
34
35
@@ -50,7 +50,7 @@ const proxyOptionPathsAsProperties = [
50
target: `http://localhost:${port1}`,
51
changeOrigin: true,
52
secure: false,
53
54
if (/\.(html)$/i.test(req.path || req.url)) {
55
return req.url;
56
0 commit comments