feat: use D1 binding for local database

This commit is contained in:
2026-06-25 12:09:44 +01:00
parent 29ff3265e8
commit de08587b77
8 changed files with 37 additions and 67 deletions
+3 -1
View File
@@ -1,9 +1,11 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: f6e835394237f01fba038726e2d4f9ae)
// Generated by Wrangler by running `wrangler types` (hash: 36a638c2dc42c34e7d5ddc208fd03581)
// Runtime types generated with workerd@1.20260521.1 2026-05-23 nodejs_als
interface __BaseEnv_Env {
DB: D1Database;
ASSETS: Fetcher;
ORIGIN: string;
BETTER_AUTH_SECRET: string;
}
declare namespace Cloudflare {
interface Env extends __BaseEnv_Env {}