Fixed preview support for sanity/next

This commit is contained in:
Henrik Larsson
2023-08-23 23:20:53 +02:00
parent ae873b5d3f
commit 0ad29cbffe
11 changed files with 35 additions and 167 deletions

View File

@@ -14,6 +14,8 @@ import { LiveQuery } from 'next-sanity/preview/live-query';
import { draftMode } from 'next/headers';
import { notFound } from 'next/navigation';
export const runtime = 'edge';
export async function generateMetadata({
params
}: {