Skip to content

Commit

Permalink
Merge pull request #118 from DDD-Community/develop
Browse files Browse the repository at this point in the history
Merge develop into main
  • Loading branch information
junseublim authored Sep 7, 2024
2 parents 660fd80 + 3acaa8e commit dc971a4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Binary file added public/images/opengraph-image-v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/opengraph-kakao.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/app/board/[boardId]/_hooks/useSnsShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ const useSnsShare = () => {
status === 'authenticated'
? `${session.profile.nickName}님이 회원님을 “${boardName}” 보드에 초대했어요!`
: `“${boardName}” 보드를 꾸며보세요!`,
localImage: '/images/opengraph-image-v2.png',
localImage: '/images/opengraph-kakao.png',
sender: status === 'authenticated' ? session.profile.nickName : '',
}

try {
// 이미지 파일을 Blob으로 처리하여 File 객체 생성
const response = await fetch(OPTIONS.localImage)
const blob = await response.blob()
const file = new File([blob], 'opengraph-image-v2.png', {
const file = new File([blob], 'opengraph-kakao.png', {
type: 'image/png',
})

Expand All @@ -62,6 +62,8 @@ const useSnsShare = () => {
title: OPTIONS.title,
description: '내 보드를 우리의 소중한 추억들로 꾸며줘!',
imageUrl,
imageWidth: 800,
imageHeight: 400,
link: {
mobileWebUrl: isDevMode
? 'https://dev.polabo.site'
Expand Down
4 changes: 2 additions & 2 deletions src/app/board/[boardId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function generateMetadata({
description: '내 보드를 우리의 소중한 추억들로 꾸며줘!',
images: [
{
url: '/images/opengraph-image-v2.png',
url: '/images/opengraph-image-v3.png',
alt: 'Polabo',
},
],
Expand All @@ -36,7 +36,7 @@ export async function generateMetadata({
description: '내 보드를 우리의 소중한 추억들로 꾸며줘!',
images: [
{
url: '/images/opengraph-image-v2.png',
url: '/images/opengraph-image-v3.png',
alt: 'Polabo',
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export const metadata: Metadata = {
openGraph: {
images: [
{
url: '/images/opengraph-image-v2.png',
url: '/images/opengraph-image-v3.png',
alt: 'Polabo',
},
],
},
twitter: {
images: [
{
url: '/images/opengraph-image-v2.png',
url: '/images/opengraph-image-v3.png',
alt: 'Polabo',
},
],
Expand Down

0 comments on commit dc971a4

Please sign in to comment.