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

15 lines
325 B
JavaScript

import localFont from 'next/font/local'
const layoutFont = localFont({ src: './layout-font-nunito-sans.woff2' })
export default function Layout({ children }) {
return (
<>
<p id="layout-with-fonts" className={layoutFont.className}>
{JSON.stringify(layoutFont)}
</p>
{children}
</>
)
}