Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Remove optimizations with unoptimized prop (#250)
# Description When the `unoptimized` flag is passed in, this removes the f_auto/q_auto optimizations from the Cloudinary URL. It will also construct a full Cloudinary URL as the src, otherwise the public ID is attempted to be used, which results in ab broken URL. This usually wouldn't be allowed but it seems the unoptimized flag bypasses the image allowed list. This doesn't fix this issue occuring when the unoptimized flag is passed in globally inside next.config.js ## Issue Ticket Number Fixes #245 <!-- Specify above which issue this fixes by referencing the issue number (`#<ISSUE_NUMBER>`) or issue URL. --> <!-- Example: Fixes https://github.com/colbyfayock/next-cloudinary/issues/<ISSUE_NUMBER> --> ## Type of change <!-- Please select all options that are applicable. --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Fix or improve the documentation - [ ] This change requires a documentation update # Checklist <!-- These must all be followed and checked. --> - [ ] I have followed the contributing guidelines of this project as mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md) - [ ] I have created an [issue](https://github.com/colbyfayock/next-cloudinary/issues) ticket for this PR - [ ] I have checked to ensure there aren't other open [Pull Requests](https://github.com/colbyfayock/next-cloudinary/pulls) for the same update/change? - [ ] I have performed a self-review of my own code - [ ] I have run tests locally to ensure they all pass - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes needed to the documentation
- Loading branch information
fed264f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
next-cloudinary – ./
next-cloudinary.vercel.app
next-cloudinary-git-main-cloudinarydevx.vercel.app
next-cloudinary-cloudinarydevx.vercel.app
next.cloudinary.dev
next-cloudinary.spacejelly.dev