Making @font-face work on github pages #43913
Unanswered
Ashkenazzio
asked this question in
Help
Replies: 1 comment
-
Move fonts to the src directory and use relative paths. This ensures Next.js properly processes and bundles the fonts. create the assets folder and put the font there In my case, I change |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a small app which uses a local
@font-face
. Everything works fine on dev environment of course.I've deployed my app using the github actions next.js workflow and the css and images are loaded fine but the font is not.
The font .woff file is stored in
/public/webfonts/fonts
.The
@font-face
import is in theglobals.css
file.Any tweaks I have to do to make the font load properly?
Beta Was this translation helpful? Give feedback.
All reactions