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

export const dynamic = 'force-dynamic';

export default async function SetupPage() {
  if (hasAnyUser()) {
    redirect('/login');
  }
  return <SetupForm />;
}
