feat: add D1 runtime database binding

This commit is contained in:
2026-06-25 11:40:56 +01:00
parent cac9d0e04d
commit b1d0267bf1
4 changed files with 94 additions and 13 deletions
+2 -4
View File
@@ -1,11 +1,9 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: 61c64c9cd1c2465ff3a92bc5ac82d57d)
// Generated by Wrangler by running `wrangler types` (hash: f6e835394237f01fba038726e2d4f9ae)
// Runtime types generated with workerd@1.20260521.1 2026-05-23 nodejs_als
interface __BaseEnv_Env {
DB: D1Database;
ASSETS: Fetcher;
DATABASE_URL: string;
ORIGIN: string;
BETTER_AUTH_SECRET: string;
}
declare namespace Cloudflare {
interface Env extends __BaseEnv_Env {}