diff --git a/src/app/[locale]/(landing)/page.tsx b/src/app/[locale]/(landing)/page.tsx index b47868b..f5c9a20 100644 --- a/src/app/[locale]/(landing)/page.tsx +++ b/src/app/[locale]/(landing)/page.tsx @@ -1,9 +1,14 @@ +import { auth } from "@/auth"; +import { redirectWithLocale } from "@/functions/user/redirectWithLocale"; import { getScopedI18n } from "@/locales/server"; import { SignInButtons } from "./SignInButtons"; export default async function LandingPage() { const t = await getScopedI18n("landing"); + const currentUser = await auth(); + if (currentUser != null) redirectWithLocale(`/mealPlan`); + return (