[nextjs]meta 데이타 넣기

코드왕·2024년 2월 2일
  1. 반드시 page.js에 넣어줘야한다.(layout.js에 넣지말자)
export const metadata = {
  openGraph: {
    title: 'Next.js',
    description: 'The React Framework for the Web',
    url: 'https://nextjs.org',
    siteName: 'Next.js',
    images: [
      {
        url: 'https://wpcdjihluvirgbyqussd.supabase.co/storage/v1/object/public/images/ogImage.png', // Must be an absolute URL
        width: 800,
        height: 600,
      }
    ],
    locale: 'en_US',
    type: 'website',
  },
}
profile
CODE DIVE!

0개의 댓글