Hello,
I want to change the name of the Session cookie with
adapter: cloudflare({
imageService: "passthrough",
platformProxy: { enabled: true },
sessionKVBindingName: 'test_session',
}),
session: {
cookie: {
name: "test-session-cookie",
sameSite: "lax",
secure: true,
}
},
see also: https://docs.astro.build/en/reference/configuration-reference/#sessioncookie
but then i get an error: session.driver: Required
so i tried:
adapter: cloudflare({
imageService: "passthrough",
platformProxy: { enabled: true },
sessionKVBindingName: 'test_session',
}),
session: {
driver: "cloudflareKVBinding",
options: {
binding: 'test_session',
},
cookie: {
name: "test-session-cookie",
sameSite: "lax",
secure: true,
}
},
then i get an error: [unstorage] [cloudflare] Invalid binding test_session: undefined
I don't know how to make this configuration works. Hopefully can somebody help me with this.