snapo
snapo
CDCloudflare Developers
Created by snapo on 7/11/2024 in #workers-help
How to configure ratelimit on environment level?
Heya! I am trying to follow the documentation and setting up a rate limiter our worker. It seems that [[unsafe.binding]] does not work in top-level when [env] is being used:
- "env.development" environment configuration
- "unsafe" exists at the top level, but not on "env.development".
This is not what you probably want, since "unsafe" is not inherited by environments.
Please add "unsafe" to "env.development".
- "env.development" environment configuration
- "unsafe" exists at the top level, but not on "env.development".
This is not what you probably want, since "unsafe" is not inherited by environments.
Please add "unsafe" to "env.development".
How should I configure rate limiter whilst using environments? 🤔
3 replies
CDCloudflare Developers
Created by snapo on 7/11/2024 in #workers-help
Are there TS types for rate limit function in @cloudflare/workers-types or other package?
I am implementing rate limiting and wondering if cloudflare ships types for this? Or should I create my own types temporarily?
3 replies
CDCloudflare Developers
Created by snapo on 3/28/2023 in #workers-help
Suddenly started getting "Failed to get worker definitions TypeError: fetch failed"
6 replies
CDCloudflare Developers
Created by snapo on 3/22/2023 in #pages-help
Cloudflare Pages, Remix with Sentry
Hi community! I have been trying to get Sentry set-up with Cloudflare Pages and Remix. Currently only focusing on client side of things and later loaders/actions. I have tried to follow these two docs: https://docs.sentry.io/platforms/javascript/guides/remix/ https://developers.cloudflare.com/pages/platform/functions/plugins/sentry/ When developing locally, I can see errors being sent and traced in Sentry. However, when triggering errors in Cloudflare Pages preview application, I can't see any traces in Sentry. I read through previous Sentry discussions in this channel, but could not find anything that would bring resolution. Any tips how to get Remix and Sentry to work in CF Pages?
9 replies