snapo
snapo
CDCloudflare Developers
Created by snapo on 8/22/2024 in #queues-beta
Hey people!
Hey @Pranshu Maheshwari I have discovered a bug on my side. Fixing the bug has solved this case. There should be no issues on CF"s side!
4 replies
CDCloudflare Developers
Created by snapo on 8/22/2024 in #queues-beta
Hey people!
Hi @Pranshu Maheshwari , thanks for opening a thread! Would you already have some insights what might be the underlying issue and if there would be a workaround before a potential fix? Let me know if I can help in any ways!
4 replies
CDCloudflare Developers
Created by snapo on 7/11/2024 in #workers-help
How to configure ratelimit on environment level?
Thanks @Leo ! Can [env.development.unsafe] and [env.development] co-exists like this?
[env]
[env.development.unsafe]
bindings = [
{ name = "rateLimit10RequestsPerMinute", type = "ratelimit", namespace_id = "1001", simple = { limit = 10, period = 60 } },
]
[env.development]
...other stable configurations
[env]
[env.development.unsafe]
bindings = [
{ name = "rateLimit10RequestsPerMinute", type = "ratelimit", namespace_id = "1001", simple = { limit = 10, period = 60 } },
]
[env.development]
...other stable configurations
This sems to work, but not sure if a good practice. What I am after is separating unsafe things from stable things
3 replies
CDCloudflare Developers
Created by snapo on 7/11/2024 in #workers-help
How to configure ratelimit on environment level?
This syntax seems to get rid of the error:
[env]
[env.development.unsafe]
bindings = [
{ name = "MY_RATE_LIMIT", type = "ratelimit", namespace_id = "1001", simple = { limit = 60, period = 60 } }
]
[env]
[env.development.unsafe]
bindings = [
{ name = "MY_RATE_LIMIT", type = "ratelimit", namespace_id = "1001", simple = { limit = 60, period = 60 } }
]
Investigating if it actually works!
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?
Thanks @Leo !
3 replies
CDCloudflare Developers
Created by rodrigo on 10/2/2023 in #workers-help
Stripe with Remix 2.0
I am pretty sure this is not Stripe related but more some remix - cloudflare internals. My sophisticated guess would be cloudflare or just wrangler
9 replies
CDCloudflare Developers
Created by rodrigo on 10/2/2023 in #workers-help
Stripe with Remix 2.0
Yes, there is also bunch of other compativility isssues. To list some: - util - crypto - buffer When bumping from Wrangler 2.x to 3.x and from Remix 1.9 to 2.x, bunch of libraries that used to work are now throwing errors related to nodejs_compat. I can't just yet really pinpoint down what went wrong, but something is off for sure 🤔
9 replies
CDCloudflare Developers
Created by rodrigo on 10/2/2023 in #workers-help
Stripe with Remix 2.0
Hey 🙂 I was struggling with the same issue. I am still confused why Stripe actually does not work with wrangler 3.x and Remix 2.x. Try adding this to the remix.config.mjs
serverNodeBuiltinsPolyfill: {
modules: ['util'],
},
serverNodeBuiltinsPolyfill: {
modules: ['util'],
},
At least you get rid of the error. However, I have not yet conducted an end-to-end test verifying this actually works. If you try it, let me know! I am curious
9 replies
CDCloudflare Developers
Created by snapo on 3/28/2023 in #workers-help
Suddenly started getting "Failed to get worker definitions TypeError: fetch failed"
No idea 😦 still encountering
6 replies