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.
2 parents db0078e + 3028ab5 commit f94f0f8Copy full SHA for f94f0f8
.proxyrc.js
@@ -8,20 +8,14 @@ const proxyHost = process.env.PROXY_HOST || DEFAULT_PROXY_HOST;
8
const secure = process.env.PROXY_SECURE === "true";
9
10
module.exports = function (app) {
11
- app.use(
12
- "/v1",
13
- createProxyMiddleware({
14
- target: proxyHost,
15
- secure,
16
- changeOrigin: true,
17
- })
18
- );
19
20
- "/oauth2",
21
22
23
24
25
26
+ app.use("/v1", createProxyMiddleware({
+ target: proxyHost + "/v1",
+ secure,
+ changeOrigin: true,
+ }));
+ app.use("/oauth2", createProxyMiddleware({
+ target: proxyHost + "/oauth2",
27
};
0 commit comments