mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## What? When importing `_app` from another entrypoint it causes the font files imported to be included in _app. This is an edge case so changing the test as it doesn't check for that. Creating a separate issue to dig into this further later.
16 lines
458 B
JavaScript
16 lines
458 B
JavaScript
import CompWithFonts from '../components/CompWithFonts'
|
|
import { Open_Sans } from 'next/font/google'
|
|
const openSans = Open_Sans({ variable: '--open-sans', subsets: ['latin'] })
|
|
|
|
export default function WithFonts() {
|
|
return (
|
|
<>
|
|
<CompWithFonts />
|
|
<div id="with-fonts-open-sans" className={openSans.className}>
|
|
{JSON.stringify(openSans)}
|
|
</div>
|
|
<div id="with-fonts-open-sans-style" style={openSans.style} />
|
|
</>
|
|
)
|
|
}
|