CreateImageWizard: Use stage candlepin urls on stage consoledot

This commit is contained in:
Sanne Raymaekers 2022-05-23 14:59:43 +02:00
parent 19fb2273ad
commit 1c5542ca81
3 changed files with 24 additions and 4 deletions

View file

@ -28,6 +28,14 @@ const ActivationKeys = ({ label, isRequired, ...props }) => {
setActivationKeys(keys);
setIsLoading(false);
});
if (insights.chrome.isProd()) {
change('subscription-server-url', 'subscription.rhsm.redhat.com');
change('subscription-base-url', 'https://cdn.redhat.com/');
} else {
change('subscription-server-url', 'subscription.rhsm.stage.redhat.com');
change('subscription-base-url', 'https://cdn.stage.redhat.com/');
}
}, []);
const setActivationKey = (_, selection) => {