WizardV2: enable V2 by default on preview and ephemeral
This commit is contained in:
parent
702f707bfd
commit
4182c00d4a
1 changed files with 3 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ const toBoolean = (environmentVariable: string | undefined): boolean => {
|
|||
export const useExperimentalFlag = () => {
|
||||
const { isBeta } = useGetEnvironment();
|
||||
const isExperimental = toBoolean(process.env.EXPERIMENTAL?.toString());
|
||||
const flagSuffix = isBeta() ? 'enabled' : 'stable';
|
||||
return useFlag(`image-builder.new-wizard.${flagSuffix}`) || isExperimental;
|
||||
return (
|
||||
useFlag('image-builder.new-wizard.stable') || isBeta() || isExperimental
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue