Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ ignore failed images for non-production Netlify deploys #654

Merged

Conversation

vikaspotluri123
Copy link
Contributor

no issue

We use Netlify to preview changes, which are especially useful in design PRs (e.g. #652). Unfortunately, we depend on third parties for images, and you can never trust the network. This PR drops gulp-download-stream in favor of an async, stream-based image downloader. This allows us finer control of the image download pipeline (so in the future, we can also cache images 🥳), and lets the Netlify build pass in non-production environments even if some images are broken

@swapagarwal
Copy link
Owner

Unfortunately, we depend on third parties for images, and you can never trust the network.

This has hurt us multiple times. Maybe we can move all images to Imgur?

@vikaspotluri123
Copy link
Contributor Author

That was suggested in #578 but it seems like that's against their ToS. I know both Github Actions and Netlify support caching so that's the route I was thinking of going

@vikaspotluri123 vikaspotluri123 merged commit 24d13ec into swapagarwal:master Sep 16, 2020
@vikaspotluri123 vikaspotluri123 deleted the netlify-image-handling branch September 16, 2020 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants