fix: undefined variables failing to parse
This commit is contained in:
@@ -231,8 +231,8 @@ export function getLogins() {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
credentialsEnabled: (process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === 'true' || process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === undefined) ? "true" : "false",
|
credentialsEnabled: (process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === 'true' || process.env.NEXT_PUBLIC_CREDENTIALS_ENABLED === undefined) ? "true" : "false",
|
||||||
emailEnabled: process.env.NEXT_PUBLIC_EMAIL_PROVIDER,
|
emailEnabled: (process.env.NEXT_PUBLIC_EMAIL_PROVIDER === 'true' ? 'true' : 'false'),
|
||||||
registrationDisabled: process.env.NEXT_PUBLIC_DISABLE_REGISTRATION,
|
registrationDisabled: (process.env.NEXT_PUBLIC_DISABLE_REGISTRATION === 'true' ? 'true' : 'false'),
|
||||||
buttonAuths: buttonAuths
|
buttonAuths: buttonAuths
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user