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

16 lines
284 B
JavaScript

'use client'
import localFont from 'next/font/local'
const pageFont = localFont({
src: './page-font-ubuntu-regular.woff2',
preload: false,
})
export default function Page() {
return (
<>
<p className={pageFont.className}>{JSON.stringify(pageFont)}</p>
</>
)
}