Closed Luca-Sett closed 2 days ago
Setting baseURL: "/base-url/" does not seem to work in production (works as expected in development).
baseURL: "/base-url/"
@font-face { ... src: local("Playfair Display Variable"), url("/base-url/_fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ-OBdH44Wijn.woff2") format(woff2); ... }
@font-face { ... src: local("Playfair Display Variable"), url(/_fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ-OBdH44Wijn.woff2) format(woff2); ... }
Repo: https://github.com/Luca-Sett/font-test Live URL: https://font-test-beta.vercel.app/base-url/
I'm experiencing the same issue.
In my case, I'm pre-rendering the whole site using npm run generate.
npm run generate
Thanks @danielroe 🙏 Confirming that this is fixed in the above reproduction!
Setting
baseURL: "/base-url/"
does not seem to work in production (works as expected in development).Development
Production
Minimal reproduction
Repo: https://github.com/Luca-Sett/font-test Live URL: https://font-test-beta.vercel.app/base-url/