mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### Why? Turbopack throws a build error (next just logs an error). Also probably better to test with real font files in general. Closes PACK-2324
13 lines
272 B
JavaScript
13 lines
272 B
JavaScript
import localFont from 'next/font/local'
|
|
|
|
const componentFont = localFont({
|
|
src: './comp-font-merriweather.woff2',
|
|
preload: false,
|
|
})
|
|
|
|
export default function Component() {
|
|
return (
|
|
<p className={componentFont.className}>{JSON.stringify(componentFont)}</p>
|
|
)
|
|
}
|