mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 13:47:49 +00:00
Removed edge runtime from [...slug]/page.tsx
This commit is contained in:
parent
0ad29cbffe
commit
a61d140ef3
@ -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
|
||||
}: {
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user