Coder Social home page Coder Social logo

Comments (3)

colbyfayock avatar colbyfayock commented on August 10, 2024 1

cool thanks for the input @ehmicky

from netlify-plugin-cloudinary.

colbyfayock avatar colbyfayock commented on August 10, 2024

@ehmicky set up a PR at #16 to switch error handling. I would imagine it's best practice to fail the plugin and not the build in this case, would you agree?

my only concern was that if someone installed the plugin, never added their cloudname, and saw it "didn't work" but failed to check the logs with a passing build, that they would think that the plugin just didn't work, which is why i was failing the builds in the first place. thoughts?

from netlify-plugin-cloudinary.

ehmicky avatar ehmicky commented on August 10, 2024

Whether the plugin or the whole build should be failed depends on whether it is acceptable for users to deploy their site even if the plugin failed. For example, for an analytics-related plugin, it might be the case. In the case of this plugin, images of the site would not be optimized and delivered by Cloudinary. I am leaning towards thinking this might be a case where the build should fail. Also for the reason you mentioned: if only the plugin was failed (not the build), missing inputs (such as cloudname) might be missed by users who do not check their build logs. What do you think?

Please note that both utils.build.failBuild() and throwing an error fail the build. The only difference is how the error is reported in the Netlify UI: as a user error or as a plugin error.

from netlify-plugin-cloudinary.

Related Issues (20)

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.