@redhat-cloud-services/frontend-components-config-utilities 1.5.20 → 1.5.21
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/package.json +1 -1
- package/proxy.js +3 -1
package/package.json
CHANGED
package/proxy.js
CHANGED
|
@@ -38,6 +38,7 @@ module.exports = ({
|
|
|
38
38
|
onBeforeSetupMiddleware = () => {},
|
|
39
39
|
bounceProd = false,
|
|
40
40
|
useAgent = true,
|
|
41
|
+
useDevBuild = true,
|
|
41
42
|
}) => {
|
|
42
43
|
const proxy = [];
|
|
43
44
|
const majorEnv = env.split('-')[0];
|
|
@@ -284,8 +285,9 @@ module.exports = ({
|
|
|
284
285
|
defaultServices.chrome = defaultServices.chrome({});
|
|
285
286
|
}
|
|
286
287
|
|
|
288
|
+
const chromeEnv = useDevBuild ? (env.includes('-beta') ? 'dev-beta' : 'dev-stable') : env;
|
|
287
289
|
chromePath = checkoutRepo({
|
|
288
|
-
repo: `${defaultServices.chrome.path}#${
|
|
290
|
+
repo: `${defaultServices.chrome.path}#${chromeEnv}`,
|
|
289
291
|
reposDir,
|
|
290
292
|
overwrite: true,
|
|
291
293
|
});
|