IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

page.tsx

Buka raw
import { Suspense } from "react";
import { LoginForm } from "@/components/auth/login-form";
import { FullScreenShell } from "@/modules/shell/components/full-screen-shell";

// Read DEMO_MODE at request time, not build time — without this Next.js
// prerenders the page once and the demo banner stays hidden even after the
// operator flips DEMO_MODE=true and restarts the service.
export const dynamic = "force-dynamic";

export default function LoginPage() {
  const isDemoMode = process.env.DEMO_MODE === "true";

  return (
    <FullScreenShell
      center={
        <div className="w-full max-w-md">
          <Suspense fallback={null}>
            <LoginForm isDemoMode={isDemoMode} />
          </Suspense>
        </div>
      }
    />
  );
}
byte
753
baris
25
Jenis
tsx
Commit terakhir
16 Oktober 2026