Advany
CDCloudflare Developers
•Created by Advany on 11/15/2024 in #workers-help
System Prompt for Cloudflare Workers
I build a system prompt (to be used inside cursorrules or any other ai tool) to generate cloudflare worker code:
https://github.com/advany/cloudflare-system-prompt
I would love to get PR's to improve this so it makes it easier to generate cloudflare worker code!
2 replies
CDCloudflare Developers
•Created by Advany on 8/1/2024 in #workers-help
HTML rewriter
Hi,
I use html rewriter to rewrite assets like scripts and css. It works great. But more and more websites are using modules and I can't find a way to rewrite those imports...
Regards,
Ab
1 replies
CDCloudflare Developers
•Created by Advany on 6/8/2023 in #workers-help
Minify
I have a html page stored in a database. I want to minify it before sending it back. Tried varios libs but they won't work with cloudflare. Is there a way to minify a js/css response before sending it back?
8 replies
CDCloudflare Developers
•Created by Advany on 5/17/2023 in #workers-help
Rewriting by customers
Hi there,
We want to allow our customers to create rewrite code using our UI and that should be executed before the response is returned. Is there a saver way to execute that user provided code then using eval?
They should only be able to rewrite the response body
4 replies
CDCloudflare Developers
•Created by Advany on 3/25/2023 in #workers-help
unzip file 1gb
I have a 1 gb file on r2. I want to unzip it and save the files back on r2. How would I do it without going over the 128 mb limit of workers?
3 replies
CDCloudflare Developers
•Created by Advany on 3/22/2023 in #workers-help
hiring
Searching for a developer to help out with create some workers.
You need to be familiar with workers, queue, analytics engine, kv, do and d1.
Also have examples to show of work you have done.
Also prefer to work with developers that use GPT-4 to speed up work.
2 replies
CDCloudflare Developers
•Created by Advany on 3/9/2023 in #workers-help
What storage to use?
I store JSON config per host inside KV. It has a 60-sec delay before being available globally (that's not a problem for regular usage). But I also want to add preview mode where the JSON value stored inside KV is available quickly.
I can store that value when the KV is set also to DO, R2, or D1. I only require the "live" value when someone wants to preview. It doesn't have to be fast and will only be used directly after the value is set to preview if things are working as expected. Which storage is the most recommended option for such a use case? I was thinking D1...
4 replies
CDCloudflare Developers
•Created by Advany on 3/7/2023 in #pages-help
Routing to worker
Is there a way to route all traffic using something like routes without a middleware? Like vercel does this with https://vercel.com/docs/concepts/projects/project-configuration#rewrites
1 replies
CDCloudflare Developers
•Created by Advany on 3/5/2023 in #workers-help
Pages limits
Hi there,
I am switching a lot of customers over from vercel to cloudflare pages. I will use the rewrite function of vercel to reroute the traffic to my pages project (and handle it using middleware).
I am on the paid plan plan. If I do this for couple of million requests a day (to start). Should I expect any problems? The original of all of those requests will be vercel.
Do I need to disable any rate limiting or firewall or whitelist something?
12 replies