nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.35k stars 272 forks source link

Nuxt Image Cloudflare Provider Serious Bug #1544

Open nafiz6629 opened 1 month ago

nafiz6629 commented 1 month ago

https://image.nuxt.com/providers/cloudflare#options In this Documentation there is written "/cdn-cgi/image/" will be automatically appended for generating URLs , Which is wrong. Proper prefix that should be appended is "/cdn-cgi/imagedelivery/" (reference: https://developers.cloudflare.com/images/manage-images/serve-images/serve-from-custom-domains/#custom-paths ) Please Fix This Bug

masud-ictlayer commented 1 month ago

I am also facing same problem. Please Fix This Bug

atiflayer commented 1 month ago

I faced the same issue too. Please fix this problem asap. Thank you!

ictLayerPulock commented 1 month ago

I encountered the same issue as well. Kindly resolve this problem as soon as possible. Thank you!

oritwoen commented 1 month ago

This is not a bug nor a problem.

Everything working correctly with /cdn-cgi/image/

ICTLAYER commented 1 month ago

This is not a bug nor a problem.

  • /cdn-cgi/image/ and /cdn-cgi/imagedelivery/ are two different services.

Everything working correctly with /cdn-cgi/image/

I also agree with you, BUT as per documentation [ /cdn-cgi/image/ ] isn't working.

So please I need more elaborate documentation. Could you give us a more step-by-step guide?

Please check the reference:

https://developers.cloudflare.com/images/manage-images/serve-images/serve-from-custom-domains/

https://developers.cloudflare.com/images/transform-images/transform-via-url/

ICTLAYER commented 1 month ago

This is not a bug nor a problem.

  • /cdn-cgi/image/ and /cdn-cgi/imagedelivery/ are two different services.

Everything working correctly with /cdn-cgi/image/

I also agree with you, BUT as per documentation [ /cdn-cgi/image/ ] isn't working.

So please I need more elaborate documentation. Could you give us a more step-by-step guide?

Please check the reference:

https://developers.cloudflare.com/images/manage-images/serve-images/serve-from-custom-domains/

https://developers.cloudflare.com/images/transform-images/transform-via-url/

More as an example to prove myself with respect:

Not Working: https://nuxtimgtest.pages.dev/cdn-cgi/image/7mnVjFJmJT6C1-RIIlFtQg/cf0cac91-0a0e-4c86-c376-60597e37e700/public

Working: https://nuxtimgtest.pages.dev/cdn-cgi/imagedelivery/7mnVjFJmJT6C1-RIIlFtQg/cf0cac91-0a0e-4c86-c376-60597e37e700/public

@oritwoen @danielroe @renovate-bot @pi0 @atinux

phi0411141 commented 1 week ago

It's a bit confusing but let me clarify, Cloudflare has 2 image services

In your example, you are using option 2, the Image service, while NuxtImage provider cloudflare targets option 1. Maybe you can use https://image.nuxt.com/advanced/custom-provider for your case