implement session via cloudflare kv

This commit is contained in:
2025-02-22 13:23:08 +01:00
parent c0e487b320
commit 1d12aac6ec
3 changed files with 94 additions and 1 deletions

6
app/src/app.d.ts vendored
View File

@@ -1,9 +1,13 @@
import { KVNamespace } from '@cloudflare/workers-types';
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
interface Platform {
env: Env
env: {
GH_MEDIA: R2Bucket;
GH_SESSIONS: KVNamespace;
};
cf: CfProperties
ctx: ExecutionContext
}