diff --git a/app/[page]/opengraph-image.tsx b/app/[page]/opengraph-image.tsx
index 2fd59281e..2ef90586e 100644
--- a/app/[page]/opengraph-image.tsx
+++ b/app/[page]/opengraph-image.tsx
@@ -1,11 +1,8 @@
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;
-
+export default async function Image({}: { params: { page: string } }) {
+ const title = process.env.SITE_NAME || 'Payload Store';
return await OpengraphImage({ title });
}
diff --git a/app/opengraph-image.tsx b/app/opengraph-image.tsx
index fb317b2dc..23762cbdd 100644
--- a/app/opengraph-image.tsx
+++ b/app/opengraph-image.tsx
@@ -3,6 +3,5 @@ import OpengraphImage from 'components/opengraph-image';
export const runtime = 'edge';
export default async function Image() {
- const title = process.env.SITE_NAME || 'Payload Store';
- return await OpengraphImage({ title });
+ return await OpengraphImage();
}
diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts
index 90397c93b..f64be61ce 100644
--- a/lib/shopify/index.ts
+++ b/lib/shopify/index.ts
@@ -164,8 +164,8 @@ const reshapeImage = (media: PayloadMedia): Image => {
return {
url: media.url!,
altText: media.alt,
- width: media.width,
- height: media.height
+ width: media.width ?? 0,
+ height: media.height ?? 0
};
};
@@ -247,9 +247,7 @@ const reshapeProduct = (product: PayloadProduct): Product => {
export async function getCollectionProducts({
collection,
- tag,
- reverse,
- sortKey
+ tag
}: {
collection?: string;
tag?: string;
@@ -327,6 +325,7 @@ export async function getMenu(handle: string): Promise