๐Ÿ“šย Reference


๐Ÿ“œย Chapter


โ€ฃ

CLS (Cumulative Layout Shift)

โ€ฃ

TypeScript

โ€ฃ

Font Optimization (next/font)


Google Fonts ์‚ฌ์šฉ


import { Inter } from 'next/font/google'

const inter = Inter({ subsets: ['latin'] })

export default function Page() {
  return <p className={inter.className}>Hello world</p>
}

๋กœ์ปฌ ํฐํŠธ ์‚ฌ์šฉ


import localFont from 'next/font/local'

const myFont = localFont({ src: './my-font.woff2' })