Aditya Mathur
Aditya Mathur
I am aware of a method to use D1 with HonoHub, but it's not my preferred approach. However, I do believe it's important to provide a solution. I'll reopen this...
Yeah, working on a new draft for this
My bad, I have updated the docs you can check it out here - https://github.com/rhinobase/hono-rate-limiter/blob/main/packages/cloudflare/README.md Here is the code - ```ts import { cloudflareRateLimiter, } from "@hono-rate-limiter/cloudflare"; import { Hono...
Interesting, yes it is working. We should update the docs.
On another thought, what's the purpose of the `@hono/node-server/vercel` file? Only for the pages dir?
Yes, this provides much-needed clarity on the issue discussed here.
This shouldn't be happening, as I have this as `peerDependencies` as you must be using it with workers, right? Are you trying to use this outside the worker runtime?
I think this sould resolve your issue - ```ts app.use(rateLimiter({ windowMs: Deno.env.has('RATE_LIMIT_WINDOW_MS') ? +Deno.env.get('RATE_LIMIT_WINDOW_MS')! : 60_000, // 1 minute limit: Deno.env.has('RATE_LIMIT_MAX_REQUESTS') ? +Deno.env.get('RATE_LIMIT_MAX_REQUESTS')! : 10, standardHeaders: 'draft-6', keyGenerator: (c) =>...
Hey 👋🏼 , are you still having this issue?
Okay, let me take a look