fix: undefined variables failing to parse

This commit is contained in:
Sebastian Hierholzer 2023-12-07 13:25:34 +01:00
parent 760c0b0026
commit 64d361fa23
No known key found for this signature in database
GPG Key ID: E4E9291D12E1CE60

View File

@ -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
}; };
} }