Is it possible to have a Zaraz event

Is it possible to have a Zaraz event trigger on a download request to a public R2 bucket on a custom domain, without using a Worker?
1 Reply
Mackenly
Mackenly10mo ago
I don't think there's a way to do something when an R2 object is downloaded without some sort of worker. If you're anti-cloudflare worker you could probably use another type of serverless function or your backend, but either way you're going to have to get in between the user and R2 to be able to fire your custom logic (in this case, zaraz call). The #r2 channel may be a better place to ask this since the implementation is not zaraz specific. Doc on R2 workers: https://developers.cloudflare.com/r2/examples/demo-worker/ Zaraz http api: https://developers.cloudflare.com/zaraz/http-events-api/
Want results from more Discord servers?
Add your server