I get this error when building:
A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense
but the component is already wrapped into suspense:
export default function Page({ params }: { params: Promise<{ slug: string }> }) {
return (
<Suspense>
<SuspensedDeploymentsPage params={params} />
</Suspense>
);
}
async function SuspensedPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
return (
<div className="h-full flex justify-center items-center py-4">
<ClientComponent title={slug} />
</div>
);
}