Gustavo de León
CDCloudflare Developers
•Created by Jakub on 2/16/2024 in #workers-help
Image Transformation with Workers - what I'm doing wrong?
Thanks 🙂
10 replies
CDCloudflare Developers
•Created by Jakub on 2/16/2024 in #workers-help
Image Transformation with Workers - what I'm doing wrong?
I tested already, but got error 403 Forbidden.
Turning off Hotlink protection solved the issue
so
I ended creating a configuration rule to turn off HL protection only for pages.dev referers
10 replies
CDCloudflare Developers
•Created by Jakub on 2/16/2024 in #workers-help
Image Transformation with Workers - what I'm doing wrong?
I'm using next.js btw,
made a custom loader for the image component,
do you think it will work (on the preview domains) if I get the image from my domain and not from the pages.dev one?
I mean from this
return "/cdn-cgi/image/${paramsString}/${normalizeSrc(src)}";
to this
return "https://mydomain.com/cdn-cgi/image/${params.join(',')}/${src}"
10 replies
CDCloudflare Developers
•Created by Jakub on 2/16/2024 in #workers-help
Image Transformation with Workers - what I'm doing wrong?
ok, that sound a little disappointing to me :/
so.. yes only works in production
I mean, I completely understand,
thanks for the clarification. 🙂
10 replies
CDCloudflare Developers
•Created by Jakub on 2/16/2024 in #workers-help
Image Transformation with Workers - what I'm doing wrong?
Are tranformations disabled in *.pages.dev domains?
im testing transformations via URL
and im my production domain it works, but in my preview domain I get a 404 error.
Should I use transform with workers to make this work?
10 replies