mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 21:47:51 +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 { draftMode } from 'next/headers';
|
||||||
import { notFound } from 'next/navigation';
|
import { notFound } from 'next/navigation';
|
||||||
|
|
||||||
export const runtime = 'edge';
|
|
||||||
|
|
||||||
export async function generateMetadata({
|
export async function generateMetadata({
|
||||||
params
|
params
|
||||||
}: {
|
}: {
|
||||||
|
@ -4,8 +4,6 @@ import { token } from '@/lib/sanity/sanity.fetch'
|
|||||||
import { draftMode } from 'next/headers'
|
import { draftMode } from 'next/headers'
|
||||||
import { isValidSecret } from 'sanity-plugin-iframe-pane/is-valid-secret'
|
import { isValidSecret } from 'sanity-plugin-iframe-pane/is-valid-secret'
|
||||||
|
|
||||||
export const runtime = 'edge'
|
|
||||||
|
|
||||||
export async function GET(request: Request) {
|
export async function GET(request: Request) {
|
||||||
const { searchParams } = new URL(request.url)
|
const { searchParams } = new URL(request.url)
|
||||||
const secret = searchParams.get('secret')
|
const secret = searchParams.get('secret')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user