-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sessions #469
base: main
Are you sure you want to change the base?
Conversation
|
d731985
to
33bec6c
Compare
@ascorbic let me know if I can help adding a default driver for the Cloudflare adapter once Sessions get's stable |
@alexanderniebuhr it would be great if you could help get Cloudflare support working. Would the user need to enable KV themselves, or could we do it automatically? |
@ascorbic happy to help getting this to work with Cloudflare.
This depends a bit on what we need. I don't think we can add a KV Namespace for the user, unless we would have an API Token of them. However we can definitely streamline the needed configuration, so the user only has to provide an binding id after they created the namespace in the Dashboard. Where can I take a look at what is needed, so I can try to figure it out for Cloudflare? |
@alexanderniebuhr the config info is here. Users can already configure the cloudflare drivers themselves, so it would be worth trying that yourself. The goal would be to see how much of that we could do for them. Right now the way to manually do it would be something like: experimental: {
session: {
driver: "cloudflare-kv-binding",
options: {
binding: "SESSIONS"
}
}
} I guess it might be done something like: adapter: cloudflare({
sessionBinding: "SESSIONS"
}} |
Changes
pnpm exec changeset
Testing
Docs