import { LoginForm } from '@/components/login-form'; import { getSystemConfig } from '@/lib/config'; export default async function LoginPage() { const config = await getSystemConfig(); // Default to true unless explicitly disabled in DB or Env const allowRegister = config.ALLOW_REGISTRATION !== 'false' && process.env.ALLOW_REGISTRATION !== 'false'; return (
); }