Next.js Discord

Discord Forum

Fonts not working properly on vercel built

Answered
Carolina Wren posted this in #help-forum
Open in Discord
Carolina WrenOP
Hola guys, can you help me debug this, on the right of the attached screenshot is my app running on localhost and on the left is the built I deployed on vercel. The hero_title DREAM utilizes a google font Josephin Sans,sans serif ( as you can see in the inspect section ). On local host it looks fine but on vercel it doesn't look as the Josephin Sans even though it shows that name when I hover over it using the inspect pointer. I have set the optimization of fonts to false on the next.config.js.
Answered by Carolina Wren
Finally solved , the issue was that I had important the default Document from next/document in the _document.js file
View full answer

1 Reply

Carolina WrenOP
Finally solved , the issue was that I had important the default Document from next/document in the _document.js file
Answer