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
16 lines
302 B
JavaScript
16 lines
302 B
JavaScript
import localFont from '@next/font/local'
|
|
|
|
const layoutFont = localFont({
|
|
src: './layout-font-rubik.woff2',
|
|
preload: false,
|
|
})
|
|
|
|
export default function Layout({ children }) {
|
|
return (
|
|
<>
|
|
<p className={layoutFont.className}>{JSON.stringify(layoutFont)}</p>
|
|
{children}
|
|
</>
|
|
)
|
|
}
|