Comments (3)
cool thanks for the input @ehmicky
from netlify-plugin-cloudinary.
@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.
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)
- [Bug] Netlify CLI local build on Windows results in Cloundinary URLs with %5C
- [Feature] Warn if cloudname configs are different
- [Feature] Add support for Netlify CDN's trasnformation syntax
- [Feature] Add support for automatic image scaling with client hints
- [Feature] Upgrade to Cloudinary Node SDK v2
- [Bug] Image does not update to a newer version
- The automated release is failing 🚨
- [Feature] Turn demo site into docs site
- [Feature] Analytics
- [Feature] Tests for onPostBuild
- [Feature] Tests for onBuild with Delivery Type of Upload
- [Bug] Duplicate requests when using Fetch API with Next.js App Router HOT 2
- [Bug] No API Key or API Secret fails builds that only need Cloud Name HOT 1
- [Feature] Add retry logic for failed uploads HOT 3
- [Bug] Host of deployed images is undefined when using fetch HOT 1
- [Feature] Upgrade project to new Netlify SDK HOT 1
- [Feature] Migrate from Jest to Vitest HOT 1
- [Bug] Production Netlify Integration Does Not Use Latest Version + Minor QOL Suggestions HOT 5
- [Bug] Failed upload errors don't get caught, leaking out of build process HOT 1
- [Bug] netlify.toml loadingStrategy is ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netlify-plugin-cloudinary.