import AuthGate from "@/components/Auth/AuthGate"; import Home from "@/components/Home"; import { ConfigurationInitializer } from "./ConfigurationInitializer"; import { isAuthDisabled } from "@/utils/auth"; import { getServerAuthStatus } from "@/utils/serverAuth"; const page = async () => { if (isAuthDisabled()) { return ( ); } const status = await getServerAuthStatus(); if (status.configured && status.authenticated) { return ( ); } return ; }; export default page;