Skip to content

Commit

Permalink
fix: Remove dev overlay from prod builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaurus committed Mar 30, 2024
1 parent 1bdaf41 commit ad1630a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { TopLoader } from "@/app/(ui)/TopLoader";
import { ThemePicker } from "@/app/(theme)/ThemePicker";
import { THEME_COOKIE_NAME, ThemeName } from "@/app/(theme)/themes";
import { cookies } from "next/headers";
import { HydrationOverlay } from "@builder.io/react-hydration-overlay";

export const generateMetadata = async (): Promise<Metadata> => {
const site = await apiClient.getSite();
Expand Down Expand Up @@ -86,13 +85,11 @@ const RootLayout = (props: Props) => {
className={`relative flex min-h-screen w-full flex-col overflow-x-clip bg-neutral-900
text-neutral-300`}
>
<HydrationOverlay>
<TopLoader />
<Navbar />
<TopLoader />
<Navbar />

<main className={"mb-auto w-full"}>{props.children}</main>
<Footer />
</HydrationOverlay>
<main className={"mb-auto w-full"}>{props.children}</main>
<Footer />
</body>
</html>
);
Expand Down

0 comments on commit ad1630a

Please sign in to comment.