feat: migrate to cloudflare d1 and queues

This commit is contained in:
2025-11-28 16:32:35 +08:00
parent 00e1f82d85
commit bd958fb1ab
19 changed files with 294 additions and 276 deletions

View File

@@ -1,5 +1,5 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: ebfd0a114715273ef48ef9f20e119f14)
// Generated by Wrangler by running `wrangler types` (hash: 55b6bc5eef0b3709210a3c57164a6bda)
// Runtime types generated with workerd@1.20251011.0 2024-09-23 nodejs_compat
declare namespace Cloudflare {
interface GlobalProps {
@@ -11,7 +11,14 @@ declare namespace Cloudflare {
TURSO_AUTH_TOKEN: string;
ENABLE_ANIFY: string;
ADMIN_SDK_JSON: string;
CLOUDFLARE_TOKEN: string;
CLOUDFLARE_D1_TOKEN: string;
CLOUDFLARE_ACCOUNT_ID: string;
CLOUDFLARE_DATABASE_ID: string;
ANILIST_DO: DurableObjectNamespace<import("./src/index").AnilistDo>;
DB: D1Database;
ANILIST_UPDATES: Queue;
NEW_EPISODE: Queue;
}
}
interface Env extends Cloudflare.Env {}