Next.js Discord

Discord Forum

Custom font disappears in Next.js app after saving or refreshing the page

Unanswered
Mugger Crocodile posted this in #help-forum
Open in Discord
Mugger CrocodileOP
In my Next.js app, I've implemented a custom font that displays correctly when the page loads. However, whenever I save the file or refresh the page, the custom font disappears and reverts back to the default font. I've verified the font file paths, the font loading method, and the CSS class usage. What could be causing this issue, and what steps can I take to ensure the custom font persists even after saving or refreshing the page?

0 Replies