@sap-ux/backend-proxy-middleware 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/proxy.js +3 -2
- package/package.json +1 -1
package/dist/base/proxy.js
CHANGED
|
@@ -274,6 +274,9 @@ function generateProxyMiddlewareOptions(backend, options = {}, logger = new logg
|
|
|
274
274
|
const proxyOptions = Object.assign(Object.assign({ headers: {} }, exports.ProxyEventHandlers), options);
|
|
275
275
|
proxyOptions.changeOrigin = true;
|
|
276
276
|
proxyOptions.logProvider = () => logger;
|
|
277
|
+
// always set the target to the url provided in yaml
|
|
278
|
+
const localBackend = backend;
|
|
279
|
+
proxyOptions.target = localBackend.url;
|
|
277
280
|
// overwrite url if running in AppStudio
|
|
278
281
|
if (btp_utils_1.isAppStudio()) {
|
|
279
282
|
const destBackend = backend;
|
|
@@ -284,8 +287,6 @@ function generateProxyMiddlewareOptions(backend, options = {}, logger = new logg
|
|
|
284
287
|
}
|
|
285
288
|
}
|
|
286
289
|
else {
|
|
287
|
-
const localBackend = backend;
|
|
288
|
-
proxyOptions.target = localBackend.url;
|
|
289
290
|
// check if system credentials are stored in the store
|
|
290
291
|
const systemStore = yield store_1.getService({ logger, entityName: 'system' });
|
|
291
292
|
const system = yield systemStore.read(new store_1.BackendSystemKey({ url: localBackend.url, client: localBackend.client }));
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Abackend-proxy-middleware"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.6.
|
|
12
|
+
"version": "0.6.7",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|