Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/01-app/01-getting-started/13-fonts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ To use a local font, import the `localFont` function from `next/font/local` and
import localFont from 'next/font/local'

const myFont = localFont({
src: './my-font.woff2',
src: './font/my-font.woff2',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local font code examples use incorrect paths that don't match the prose description of storing fonts in app/fonts/.

Fix on Vercel

Copy link
Copy Markdown
Member

@icyJoseph icyJoseph Apr 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
src: './font/my-font.woff2',
src: './fonts/my-font.woff2',

})

export default function RootLayout({
Expand Down
Loading