Giter VIP home page Giter VIP logo

Comments (4)

gregives avatar gregives commented on June 15, 2024

Thanks for taking the time to create an issue!

I think the problem might be coming from Critical and not from Twelvety but I will investigate some more. Would you be able to share your repository with me?

from twelvety.

Meandmybadself avatar Meandmybadself commented on June 15, 2024

I'll share the repo shortly.

I found a workaround that gets the build building.

Before, I was linking to the stylesheet as:
<link rel="stylesheet" type="text/css" href="https://cloud.typography.com/6984932/6762612/css/fonts.css" />

Removing some of the properties that identify it as CSS appear to serve as a workaround:
<link href="https://cloud.typography.com/6984932/6762612/css/fonts.css" />

from twelvety.

gregives avatar gregives commented on June 15, 2024

So this is actually unrelated to Twelvety, as you said the error is because Critical is trying to parse this 403 response:

An error (403 Forbidden) has occurred in response to this request.

You could either disable Twelvety's critical transform by commenting out line 9 of utils/transforms.js or you could find a way of configuring Critical so that it ignores that URL.

If you go down the second route, Critical has a request option which you can use to configure got. If the external stylesheet is returning a 403 because there isn't a referrer header, you might be able to set that header using the request option.

from twelvety.

Meandmybadself avatar Meandmybadself commented on June 15, 2024

I'll look into it & report back. Thank you for your assistance.

from twelvety.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.