fix: undefined variables failing to parse
This commit is contained in:
parent
760c0b0026
commit
64d361fa23
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
Ŝarĝante…
Reference in New Issue