Removed edge runtime from [...slug]/page.tsx

This commit is contained in:
Henrik Larsson 2023-08-24 07:20:51 +02:00
parent 0ad29cbffe
commit a61d140ef3
2 changed files with 0 additions and 4 deletions

View File

@ -14,8 +14,6 @@ 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
}: {

View File

@ -4,8 +4,6 @@ import { token } from '@/lib/sanity/sanity.fetch'
import { draftMode } from 'next/headers'
import { isValidSecret } from 'sanity-plugin-iframe-pane/is-valid-secret'
export const runtime = 'edge'
export async function GET(request: Request) {
const { searchParams } = new URL(request.url)
const secret = searchParams.get('secret')