export const runtime = "nodejs";
import { redirect } from 'next/navigation';
import { hasAnyUser } from '@/src/lib/db/user';
import LoginForm from '@/src/components/LoginForm';

export const dynamic = 'force-dynamic';

export default async function LoginPage() {
  if (!hasAnyUser()) {
    redirect('/setup');
  }
  return <LoginForm />;
}
