Hi Team,
We’ve observed that when creating a new Next.js app, the default 404 (Not Found) page renders with the Helvetica font, even though we haven’t specified this font anywhere in our codebase.
Upon inspecting the styles, it appears that Helvetica is applied globally by default, possibly via internal styling used by the framework for the 404 page.
Could you please confirm:
Is Helvetica set as a default global font in Next.js (specifically on error pages)?
If so, is there any way to override or prevent this without customizing the default 404 page?
This behavior was unexpected and led to some confusion during our development process. Any clarification would be appreciated.
Hey @kiranmoshimoshi-gmai ,
Do you have this next app deployed anywhere? Typically the default font would come from your browser. Helveitca is the typical sans serif font in browsers.
The browser default font seems like the most likely cause. It’s also possible that there’s a global style being applied in your project. We can’t be sure of the exact cause without seeing it.
But you can customize the error pages with not-found.js and error.js files if you want full control over how the error pages look. I hope that helps!