Files
next.js/test/e2e/next-font/app/pages/with-fonts.js
Tim NeutkensandGitHub f3cabc91c3 Turbopack Build: Fix next-font test (#80049)
## 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.
2025-06-02 16:32:22 +02:00

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} />
</>
)
}