UNPKG
@nadeshikon/plugin-nextjs
Version:
latest (4.29.5-4)
4.29.5
4.29.5-4
4.29.5-3
4.29.5-2
4.29.5-1
Run Next.js seamlessly on Netlify
github.com/netlify/next-runtime
netlify/next-runtime
@nadeshikon/plugin-nextjs
/
test
/
e2e
/
app-dir
/
next-font
/
app
/
layout-with-fonts
/
layout.js
15 lines
(12 loc)
•
328 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
localFont
from
'@next/font/local'
const
layoutFont =
localFont
({
src
:
'./layout-font.woff2'
})
export
default
function
Layout
(
{ children }
) {
return
(
<>
<
p
id
=
"layout-with-fonts"
className
=
{layoutFont.className}
>
{JSON.stringify(layoutFont)}
</
p
>
{children}
</>
) }