-
Notifications
You must be signed in to change notification settings - Fork 31
Having trouble with fonts not being found on live production #174
Copy link
Copy link
Closed
Labels
Description
Hey! Very cool package. I'm using this for an open-source Nuxt project I am working on behind the scenes, but I am running into issues when deploying to live production via Netlify..
Oddly enough, Netlify shows that the fonts are downloaded and cached [success] [@nuxt/fonts] Fonts downloaded and cached., but when I navigate to my site I get the following error:
GET https://yeren.netlify.app/_fonts/-F63fjptAgt5VM-kVkqdyU8n5is-60MhQVXoUT.woff net::ERR_ABORTED 404 (Not Found)
GET https://yeren.netlify.app/_fonts/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o-jzNqqYFBmI.woff2 net::ERR_ABORTED 404 (Not Found)
My nuxt.config looks like this:
modules: [
'@nuxt/fonts',
],
fonts: {
families: [
{ name: 'IBM Plex Mono', provider: 'google', weights: [400, 500, 600] },
{ name: 'IBM Plex Sans', provider: 'google', weights: [400, 500, 600] }
]
},
Perhaps this is an issue with my config? Any help would be appreciated:)
Reactions are currently unavailable