puerh
puerh
CDCloudflare Developers
Created by puerh on 10/18/2024 in #general-help
Custom domains and self hosting
I have a worker sitting on foo.bar.com and I want my customer to be able to self host it on their site bar.baz.com. Currently foo.bar is being served in a cross origin iframe and it's running into issues with the newish 3rd party cookie changes. I've been googling in a circle because I'm absolutely not using the correct terms, and the are all so loaded! Is there a good guide to follow anywhere? I think I need to get the client to update their CNAME - but with what values, and how it's generated - I'm really not sure! Any help and pointers would be ace - thank you!
3 replies
CDCloudflare Developers
Created by puerh on 9/29/2023 in #general-help
Change Cloudflare Image CDN path to a subdomain
Heya! I've started using the Cloudflare Image CDN (https://www.cloudflare.com/lp/pg-images/) and all the images comes from https://imagedelivery.net/<account_id>/<image_id>/<variant> but I'd like it to come from images.<domain_i_own_in_cloudflare>/<account_id>/<image_id>/<variant> I saw the docs recommend transform rules for custom domains (https://developers.cloudflare.com/images/cloudflare-images/serve-images/serve-images-custom-domains/) - but I'm not sure that works on subdomains? I've been playing around, but not sure I'm getting anywhere - any ideas?
2 replies
CDCloudflare Developers
Created by puerh on 6/12/2023 in #workers-help
Only create workers for usage locally
Hi there, I'm just getting started with Cloudflare pages - and it's super slick! It looks like https://mswjs.io/ (MSW/Mock service worker) isn't supported in edge environments yet - and I'd like to make something similar. I think I have what I want by adding to the functions folder, and it's working great. Create a new file foojs, hardcode the response - and make the FE hit it ❤️ However, I don't really want these mock functions deployed anywhere - is there a way of having 'local' functions vs 'deployed' functions? Some way of excluding these mocks from the build? Thank you so much! Ollie
1 replies