Skip to content

Commit

Permalink
feat: default og image 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdgpdi committed Dec 29, 2024
1 parent 6f28847 commit e14980d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/techpick/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
NEXT_PUBLIC_DOMAIN='localhost를 실행할 도메인'
NEXT_PUBLIC_API='API 주소 요청 주소'
NEXT_PUBLIC_REDIRECT_URL=로그인 이후, 리다이렉트할 URL
NEXT_PUBLIC_MIXPANEL_TOKEN=믹스패널에 사용하는 토큰
NEXT_PUBLIC_MIXPANEL_TOKEN=믹스패널에 사용하는 토큰
NEXT_PUBLIC_IMAGE_URL=OG IMAGE URL을 가져오는 주소.
3 changes: 3 additions & 0 deletions frontend/techpick/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const metadata: Metadata = {
icons: {
icon: '/favicon.ico',
},
openGraph: {
images: `${process.env.NEXT_PUBLIC_IMAGE_URL}/image/og_image.png`,
},
};

export default function RootLayout({
Expand Down

0 comments on commit e14980d

Please sign in to comment.