diff --git a/src/app/layout.tsx b/src/app/layout.tsx index dfdded4..d912dc3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata, Viewport } from "next"; +import { connection } from "next/server"; import type { ReactNode } from "react"; import Footer from "../components/Footer"; import Header from "../components/Header"; @@ -37,7 +38,9 @@ export const viewport: Viewport = { initialScale: 1, }; -export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) { +export default async function RootLayout({ children }: Readonly<{ children: ReactNode }>) { + await connection(); + return (