Martijn
Martijn
CDCloudflare Developers
Created by Marat on 8/22/2024 in #pages-help
Rate limiting API (binding) support for pages
I am also interested in this 😄
3 replies
CDCloudflare Developers
Created by Martijn on 5/7/2024 in #pages-help
Image Transformations via Pages Function doesn't seem to work
I won't be the one to try this 😅
15 replies
CDCloudflare Developers
Created by Martijn on 5/7/2024 in #pages-help
Image Transformations via Pages Function doesn't seem to work
Yeah, since the differences in what you can do with them are subtle but significant, I often struggle.
15 replies
CDCloudflare Developers
Created by Martijn on 5/7/2024 in #pages-help
Image Transformations via Pages Function doesn't seem to work
Alright, much appreciate the help Chaika!
15 replies
CDCloudflare Developers
Created by Martijn on 5/7/2024 in #pages-help
Image Transformations via Pages Function doesn't seem to work
My R2 is indeed on custom domain assets.my-domain.com. Is that considered inside the zone? Can I uncheck the "resize from any origin"? And with limit formats I meant widths etc. A malicious actor could theoretically request many different widths and image formats to rack up my bill with the URL Format method?
15 replies
CDCloudflare Developers
Created by Martijn on 5/7/2024 in #pages-help
Image Transformations via Pages Function doesn't seem to work
Alright, that makes sense. Thanks for clarifying. With the URL, there's no way for me to limit which format, and even because they are hosted on "remote" R2 bucket (as opposed to inside CF Images Storage), I'm not able to limit which external images can be transformed, right?
15 replies
CDCloudflare Developers
Created by Patrick M on 5/7/2024 in #pages-help
Example of setting up staging and production environments
You can set up those different environment variables in your pages project > Settings > Environment variables (notice "preview" at the bottom, those will be used for all preview builds aka builds for non-main branches) Same goes for bindings: go to Settings > Functions and when you scroll down to the different bindings, you see a tab for Production and Preview separately under each type of binding
3 replies
CDCloudflare Developers
Created by Patrick M on 5/7/2024 in #pages-help
Example of setting up staging and production environments
I do mine in one project: the latest (preview-) build for any non-main branch is always at <branch>.<project>.pages.dev and you can set up specific environment variables as well as bindings (like KV or R2) for those preview builds in the settings of your project.
3 replies
CDCloudflare Developers
Created by Martijn on 5/7/2024 in #pages-help
Image Transformations via Pages Function doesn't seem to work
So to clarify, requests to this worker "work" as in it successfully responds with the original image, but it's just not transformed at all (no matter the size I pass), and it does not have the Cf-Resized response header. Here's an example path I use: my-domain.com/api/gallery/?image=gallery%2Fmy-dir%2FIMG_0655.jpg&size=large
15 replies
CDCloudflare Developers
Created by artdevgame on 10/9/2023 in #general-help
architecture best practices
I'm not familiar with GQL, but are Pages not up for the task? They are basically workers as far as I understand.
3 replies