timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
7.43k stars 1.87k forks source link

Font is showing in production but not in local #868

Open juskek opened 4 months ago

juskek commented 4 months ago

Describe the bug

Fonts are showing in production but not in local. I pushed my last article over 2 weeks ago, and the fonts were working fine in local and production. I came back today and the fonts are not loading anymore in local :')

I've narrowed it down to a missing css variable, see screenshots

Screenshots In local,

image

In production,

image

What I've tried

  1. Restart server
  2. Empty cache and hard reload
juskek commented 4 months ago

Strangely... I did the following:

  1. vercel dev -> saw fonts being applied in local
  2. Stopped local server
  3. yarn dev
  4. Empty cache and hard reload
  5. fonts are now being applied in local... ??

Might be a Next / Vercel font optimisation issue.