Skip to content

Commit

Permalink
refactor: rename og route to thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jul 4, 2023
1 parent a20e4c7 commit 43e232b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/(blog)/feed/generate-feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function generateFeed() {
date: new Date(post.date),
category: post.tags.split(',').map(tag => ({ name: tag.trim() })),
image: {
url: `${link}/og`,
url: `${link}/thumbnail`,
type: 'image/png'
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/app/(blog)/post/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function generateMetadata({ params }: Props): Metadata {
type: 'article',
url: `https://mfg-b.vercel.app/post/${params.slug}`,
images: {
url: `${host}/post/${post.id}/og`,
url: `${host}/post/${post.id}/thumbnail`,
width: 1200,
height: 630
}
Expand Down
File renamed without changes.

0 comments on commit 43e232b

Please sign in to comment.