mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Updated TypeScript to resolve async RSC error
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import Footer from '@/components/layout/footer/footer';
|
||||
import DynamicContentManager from 'components/layout/dynamic-content-manager';
|
||||
import { pageQuery } from 'lib/sanity/queries';
|
||||
import { clientFetch } from 'lib/sanity/sanity.client';
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
@@ -75,12 +73,5 @@ export default async function Page({ params }: PageParams) {
|
||||
|
||||
if (!page) return notFound();
|
||||
|
||||
return (
|
||||
<>
|
||||
<DynamicContentManager content={page?.content} />
|
||||
<Suspense>
|
||||
<Footer locale={params.locale} />
|
||||
</Suspense>
|
||||
</>
|
||||
);
|
||||
return <DynamicContentManager content={page?.content} />;
|
||||
}
|
||||
|
Reference in New Issue
Block a user