-
Notifications
You must be signed in to change notification settings - Fork 283
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
Cloudlfare Images doesn't work #891
Comments
I am in the same situation. Setting cloudflare as the provider does not work with Cloudflare Images. Are there any plans to support Cloudflare Images in Nuxt Image? If you support Cloudflare Images, the Cloudflare documentation indicates that the URL should look like this
The Also, the location of the parameters seems to be different. When using flexible variations, it appears that the parameters must be given after the |
As a workaround solution for now, custom provider works fine, which allows to use nuxt-picture and CloudFlare Images, preserving the image optimization import { joinURL } from 'ufo' export function getImage(src, { modifiers, baseURL } = {}, { options, $img }) {
} |
I customized cloudflare provider like below and implemented it as custom provider, it solved my problem.
|
Closing ad the workaround was provided. |
Is there a way to use cloudflare provider with Cloudflare Images? Seems like it makes the image request to the
https://imagedelivery.net/<my-id>/cdn-cgi/image/w=1536,f=webp/ ,
which is the format of the Cloudflare Image Resizing, while the actual Cloudflare Images using url like below
https://imagedelivery.net/<my-id>/<img-id>/public
The custom provider solves the problem, however you are losing the features of the Nuxt-Picture srcset attributes, for the different screen sizes
The text was updated successfully, but these errors were encountered: