From 844f8b76d3f2d145cc324697c78af7fbacea41b7 Mon Sep 17 00:00:00 2001 From: Arnav Date: Sun, 23 Jun 2024 20:34:51 +1200 Subject: [PATCH] fix: `next build` fails because useSearchParams is not supported on server don't want think more about it loool https://nextjs.org/docs/app/api-reference/functions/use-search-params --- frontend/app/layout.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/app/layout.tsx b/frontend/app/layout.tsx index a9e9172..f9a9fcc 100644 --- a/frontend/app/layout.tsx +++ b/frontend/app/layout.tsx @@ -1,5 +1,5 @@ import "./globals.css" -import React from "react" +import React, { Suspense } from "react" import type { Metadata } from "next" import Header from "@/app/components/Header" import FlowerNav from "@/app/components/FlowerNav" @@ -45,7 +45,9 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac xl:ml-auto 2xl:mx-auto `}> - {children} + + {children} +