Skip to content

Commit

Permalink
fix: next build fails because useSearchParams is not supported on s…
Browse files Browse the repository at this point in the history
…erver

don't want think more about it loool

https://nextjs.org/docs/app/api-reference/functions/use-search-params
  • Loading branch information
arnard76 committed Jun 23, 2024
1 parent 6d0d332 commit 844f8b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -45,7 +45,9 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
xl:ml-auto
2xl:mx-auto
`}>
{children}
<Suspense>
{children}
</Suspense>
</main>
</div>

Expand Down

0 comments on commit 844f8b7

Please sign in to comment.