nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
938 stars 53 forks source link

Rate Limiting #43

Open atinux opened 6 months ago

atinux commented 6 months ago

From https://blog.cloudflare.com/workers-production-safety

CleanShot 2024-04-04 at 16.11.57@2x.png

atinux commented 5 months ago

Available on Miniflare / proxy bindings but not available on Pages yet.

NeoPrint3D commented 5 months ago

Is there a way to set expireAt or time to live in the nuxthub kv?

atinux commented 5 months ago

Hey @NeoPrint3D

We use unstorage under the hood as abstraction of Cloudflare KV.

From what I see there is an open pull request to support giving the options to setItem: https://github.com/unjs/unstorage/issues/32