Fix generator to reference the correct variable

This commit is contained in:
gbuomprisco
2025-01-07 13:38:17 +08:00
parent 5a4bbb1716
commit 10898231fe
2 changed files with 4 additions and 4 deletions

View File

@@ -129,10 +129,10 @@ export function createEnvironmentVariablesGenerator(
}, },
{ {
type: 'confirm', type: 'confirm',
name: 'values.NEXT_PUBLIC_ENABLE_TEAM_ACCOUNT_DELETION', name: 'values.NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_DELETION',
message: `Do you want to enable team account deletion? \nFor more info: ${getUrlToDocs('NEXT_PUBLIC_ENABLE_TEAM_ACCOUNT_DELETION')}\n`, message: `Do you want to enable team account deletion? \nFor more info: ${getUrlToDocs('NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_DELETION')}\n`,
default: getBoolean( default: getBoolean(
allVariables.NEXT_PUBLIC_ENABLE_TEAM_ACCOUNT_DELETION, allVariables.NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_DELETION,
true, true,
), ),
}, },

View File

@@ -54,7 +54,7 @@ const Schema: Record<string, z.ZodType> = {
NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_DELETION: BooleanStringEnum, NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_DELETION: BooleanStringEnum,
NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING: BooleanStringEnum, NEXT_PUBLIC_ENABLE_PERSONAL_ACCOUNT_BILLING: BooleanStringEnum,
NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS: BooleanStringEnum, NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS: BooleanStringEnum,
NEXT_PUBLIC_ENABLE_TEAM_ACCOUNT_DELETION: BooleanStringEnum, NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_DELETION: BooleanStringEnum,
NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING: BooleanStringEnum, NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_BILLING: BooleanStringEnum,
NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_CREATION: BooleanStringEnum, NEXT_PUBLIC_ENABLE_TEAM_ACCOUNTS_CREATION: BooleanStringEnum,
NEXT_PUBLIC_REALTIME_NOTIFICATIONS: BooleanStringEnum, NEXT_PUBLIC_REALTIME_NOTIFICATIONS: BooleanStringEnum,