Replies: 2 comments
-
This is what I usually do: UPSers Put the fonts in public/static somewhere In the same folder as the fonts put a CSS file where the fonts are declared CSS file example /public/fonts/style.css: @font-face { render() {
} |
Beta Was this translation helpful? Give feedback.
-
Hi @indahud 👋 I'd need to see more of the code to help, but my bet is that you have the Are you able to share your setup (or a minimal reproduction) in a GitHub repo? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using TailwindCSS in my NextJS project and I am using vercel for deployment. I followed TailwindCSS official website guide for installation. However there is one weird issue I am going through.
CSS and fonts are not working on production if I use seprate component. But they work locally.
If I return NameList
divs
directly in Home function, everything is working perfectly on both locally and on production. Any ideas what is wrong here??Beta Was this translation helpful? Give feedback.
All reactions