Skip to content

Commit

Permalink
feat: add on development title in production env
Browse files Browse the repository at this point in the history
  • Loading branch information
DikDns committed Oct 8, 2024
1 parent 02ec3f8 commit a83f5d7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { type Metadata } from "next";
import { GeistSans } from "geist/font/sans";

import { ReactLenis } from "@/components/common/react-lenis";
import { env } from "@/env";

import {
fontBonobo,
Expand All @@ -27,7 +28,15 @@ export default function RootLayout({
className={`${GeistSans.variable} ${fontBonobo.variable} ${fontZelda.variable} ${fontRockNRollOne.variable} ${fontSheikahComplete.variable}`}
>
<body>
<ReactLenis>{children}</ReactLenis>
{env.NODE_ENV === "development" ? (
<ReactLenis>{children}</ReactLenis>
) : (
<main className="flex h-screen items-center justify-center">
<h1 className="text-center font-bonobo text-2xl font-semibold">
On Development
</h1>
</main>
)}
</body>
</html>
);
Expand Down

0 comments on commit a83f5d7

Please sign in to comment.