Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob committed Apr 18, 2024
1 parent ddc7d67 commit e2b2081
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/[page]/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +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;
Expand Down
2 changes: 2 additions & 0 deletions app/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import OpengraphImage from 'components/opengraph-image';

export const runtime = 'edge';

export default async function Image() {
return await OpengraphImage();
}
2 changes: 2 additions & 0 deletions app/search/[collection]/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
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;
Expand Down

0 comments on commit e2b2081

Please sign in to comment.