Next.js Discord

Discord Forum

Google Fonts

Answered
Mini Rex posted this in #help-forum
Open in Discord
Avatar
Mini RexOP
when using the next/fonts/google module does the client fetch the fonts from google or does the server fetch the fonts and send it to the client
Answered by B33fb0n3
the client
View full answer

8 Replies

Avatar
that will be directly fetched from the google servers. But you can also download it first and use localfont to load it from your own server: https://nextjs.org/docs/app/building-your-application/optimizing/fonts#local-fonts
Avatar
Mini RexOP
by the client or the server
Avatar
the client
Answer
Avatar
Mini RexOP
yeah ill just downlad the font and use it localy
Avatar
keep in mind, that the client will still fetch it
Avatar
Mini RexOP
oh yea ik
but i dont want the client fetching from google
Avatar
happy to help