Revert "redirect authenticated users from landing, login, and register to dashboard"

This reverts commit c3bd035e6d.
This commit is contained in:
CREDO23 2026-03-30 21:10:43 +02:00
parent c3bd035e6d
commit 4e800c8824
3 changed files with 1 additions and 27 deletions

View file

@ -1,9 +1,6 @@
"use client";
import dynamic from "next/dynamic";
import { useRouter } from "next/navigation";
import { useEffect } from "react";
import { getBearerToken } from "@/lib/auth-utils";
import { HeroSection } from "@/components/homepage/hero-section";
const FeaturesCards = dynamic(
@ -29,14 +26,6 @@ const CTAHomepage = dynamic(
);
export default function HomePage() {
const router = useRouter();
useEffect(() => {
if (getBearerToken()) {
router.replace("/dashboard");
}
}, [router]);
return (
<main className="min-h-screen bg-gradient-to-b from-gray-50 to-gray-100 text-gray-900 dark:from-black dark:to-gray-900 dark:text-white">
<HeroSection />