79354046

Date: 2025-01-14 05:24:48
Score: 2
Natty:
Report link
export default async function Home() {
  const session = await getServerSession(authOptions);
  if (session) {
    return redirect('/login');
  }

  return redirect('/dashboard/tariff');
}

you can call redirect fuction as a component! Follow

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: behzod