mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
21 lines
727 B
TypeScript
21 lines
727 B
TypeScript
import { type ReactNode, Suspense } from 'react';
|
|
|
|
/**
|
|
* Forces the page to be statically rendered.
|
|
*
|
|
* > Force static rendering and cache the data of a layout or page by forcing cookies(), headers()
|
|
* and useSearchParams() to return empty values.
|
|
* @see https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamic
|
|
*/
|
|
export const dynamic = 'force-static';
|
|
export { metadata, viewport } from 'next-sanity/studio';
|
|
|
|
export type CreateStudioPageProps = {
|
|
suspenseFallback?: ReactNode;
|
|
sanityStudio: ReactNode;
|
|
};
|
|
|
|
export const SanityStudioSSRPage = ({ sanityStudio, suspenseFallback }: CreateStudioPageProps) => {
|
|
return <Suspense fallback={suspenseFallback}>{sanityStudio}</Suspense>;
|
|
};
|