You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use Vercel KV as my storage. It's an implementation of Redis, but it doesn't expose a Redis URL. Instead, there's a JavaScript client library that supports the same methods.
Ideally, there would be some contract, expressed as a TypeScript interface, for a custom storage. I'd then be able to pass in my own factory instead of "memory" or "redis".
bundlers would be able to tree-shake this library better. As-is, they have to include both the memory and redis storage options because they're both required statically and resolved by a ternary statement
Activity
jamesarosen commentedon Dec 22, 2023
Ah! This example suggests the solution is to use
PluggableStoragefrom the browser SDK.jamesarosen commentedon Jul 23, 2024
This issue seems relevant again now that this library's README says,
EmilianoSanchez commentedon Jul 31, 2024
Yes @jamesarosen ,
As explained here, this package doesn't support custom storages yet :/.
Because of the benefits you mentioned, we plan to support it, but there is no ETA yet.
Let's keep this issue open until we have a solution for it.