Files
LeahandGitHub 44b589e8ec chore: use real font files for font tests (#61399)
### 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
2024-01-31 01:22:25 +00:00

13 lines
273 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>
)
}