Skip to content

Webfont is not loading in Oxygen deployment preview because the request URL is relative to https://cdn.shopify.com #1424

Closed Answered by frandiox
mattrosno asked this question in Help
Discussion options

You must be logged in to vote

As Steve mentioned, you can place your fonts in the app directory and use a relative path. That's what we are doing in our demo-store: https://github.com/Shopify/hydrogen/blob/main/templates/demo-store/app/styles/custom-font.css#L5

This is something we recently discussed internally. We'll try to improve this somehow.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stevepsharpe
Comment options

Answer selected by mattrosno
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants