Commit 9d8f146f authored by EC2 Default User's avatar EC2 Default User

enable login

parent 0f00d2fa
import type { Feature } from './types';
// import services from '../services';
// import { getEnvValue } from '../utils';
import services from '../services';
import { getEnvValue } from '../utils';
const title = 'My account';
const config: Feature<{ isEnabled: true; recaptchaSiteKey: string }> = (() => {
// 禁用account功能,隐藏Log in按钮
// if (getEnvValue('NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED') === 'true' && services.reCaptchaV2.siteKey) {
// return Object.freeze({
// title,
// isEnabled: true,
// recaptchaSiteKey: services.reCaptchaV2.siteKey,
// });
// }
if (getEnvValue('NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED') === 'true' && services.reCaptchaV2.siteKey) {
return Object.freeze({
title,
isEnabled: true,
recaptchaSiteKey: services.reCaptchaV2.siteKey,
});
}
return Object.freeze({
title,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment