From ddc7d67bae9279f147b7ef906ec7f067768bcbb2 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Wed, 17 Apr 2024 21:36:02 -0500 Subject: [PATCH] Update --- app/[page]/opengraph-image.tsx | 2 -- app/api/revalidate/route.ts | 2 -- app/opengraph-image.tsx | 2 -- app/search/[collection]/opengraph-image.tsx | 2 -- app/sitemap.ts | 2 ++ 5 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/[page]/opengraph-image.tsx b/app/[page]/opengraph-image.tsx index 2fd59281e8..031e73fc8f 100644 --- a/app/[page]/opengraph-image.tsx +++ b/app/[page]/opengraph-image.tsx @@ -1,8 +1,6 @@ import OpengraphImage from 'components/opengraph-image'; import { getPage } from 'lib/shopify'; -export const runtime = 'edge'; - export default async function Image({ params }: { params: { page: string } }) { const page = await getPage(params.page); const title = page.seo?.title || page.title; diff --git a/app/api/revalidate/route.ts b/app/api/revalidate/route.ts index 47af2a4a4a..4ecc0b45d9 100644 --- a/app/api/revalidate/route.ts +++ b/app/api/revalidate/route.ts @@ -1,8 +1,6 @@ import { revalidate } from 'lib/shopify'; import { NextRequest, NextResponse } from 'next/server'; -export const runtime = 'edge'; - export async function POST(req: NextRequest): Promise { return revalidate(req); } diff --git a/app/opengraph-image.tsx b/app/opengraph-image.tsx index 23762cbdda..7a6f49f461 100644 --- a/app/opengraph-image.tsx +++ b/app/opengraph-image.tsx @@ -1,7 +1,5 @@ import OpengraphImage from 'components/opengraph-image'; -export const runtime = 'edge'; - export default async function Image() { return await OpengraphImage(); } diff --git a/app/search/[collection]/opengraph-image.tsx b/app/search/[collection]/opengraph-image.tsx index 9eb9c47f77..4efeb29c0e 100644 --- a/app/search/[collection]/opengraph-image.tsx +++ b/app/search/[collection]/opengraph-image.tsx @@ -1,8 +1,6 @@ import OpengraphImage from 'components/opengraph-image'; import { getCollection } from 'lib/shopify'; -export const runtime = 'edge'; - export default async function Image({ params }: { params: { collection: string } }) { const collection = await getCollection(params.collection); const title = collection?.seo?.title || collection?.title; diff --git a/app/sitemap.ts b/app/sitemap.ts index fe8ed96ac2..8f31ee94f7 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -11,6 +11,8 @@ const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` : 'http://localhost:3000'; +export const dynamic = 'force-dynamic'; + export default async function sitemap(): Promise { validateEnvironmentVariables();