Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not respect app.baseURL in inline font-face rules in production #341

Open
Luca-Sett opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@Luca-Sett
Copy link

Setting baseURL: "/base-url/" does not seem to work in production (works as expected in development).

Development

@font-face {
  ...
  src: local("Playfair Display Variable"), url("/base-url/_fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ-OBdH44Wijn.woff2") format(woff2);
  ...
}

Image

Production

@font-face {
  ...
  src: local("Playfair Display Variable"), url(/_fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ-OBdH44Wijn.woff2) format(woff2);
  ...
}

Image

Minimal reproduction

Repo: https://github.com/Luca-Sett/font-test
Live URL: https://font-test-beta.vercel.app/base-url/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant