Skip to content

Having trouble with fonts not being found on live production #174

@rylanharper

Description

@rylanharper

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:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions