Marcus
Marcus
CDCloudflare Developers
Created by PJP on 11/6/2024 in #kv
Does anyone have a reference code on how
not a professional but I did export a namespace successfully using the REST API. we only had like 4k entries, though, so the performance was okay doing two requests per key—with that many entries I can see why you would want to create a worker that does multiple subrequests, which I didn't bother with. in case for some reason it helps, though: https://github.com/marcustyphoon/cloudflare-kv-migrate
2 replies
CDCloudflare Developers
Created by Anthony on 8/2/2024 in #kv
How do you modify every KV entry without
The binding is limited to 1000/request, right?
5 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
Which is why I love this platform, of course; KV is great; KV being wrapped so it acts like a static asset folder is great! Using the Pages stack for something it's technically not intended for feels silly, but if there's a similar wrapper for KV that's just a part of the developer platform under assets I'd love to use that; I just don't see any documentation about it.
20 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
Will look through that. But I meant more, backing up, that the user would have to be instructed to make an R2 binding and add it to one or multiple config files as part of using the template to make a bot, yeah? While the bucket = "./public" method is zero config, as one would reasonably expect
20 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
Hm, the setup process for this doesn't seem very suited to "here's a template repo that you can clone, put assets in a folder, and run a github action to sync"
20 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
Right, yeah, the linked issue seemed to be well-targeted toward finding a solution to just this sort of thing with good devx, and then it wasn't clear to be if the resolution it was closed with actually does that
20 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
Yeah, that was why I wanted to figure out the semantic way to do it :D @cloudflare/kv-asset-handler definitely works, but it seemed like it was intended to be deprecated?
20 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
Is there a nice way to have a folder in the repo synced to R2 (e.g. from wrangler cli)?
20 replies
CDCloudflare Developers
Created by Marcus on 3/12/2024 in #workers-help
simplest static asset hosting
(and made a separate repo that's just a folder of images and uploaded that as a pages site)
20 replies