-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworker-configuration.d.ts
More file actions
35 lines (33 loc) · 1.47 KB
/
worker-configuration.d.ts
File metadata and controls
35 lines (33 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// <reference types="@cloudflare/workers-types" />
// This file is auto-updated by `wrangler types` after running:
// pnpm install && wrangler types
// The Env interface below mirrors wrangler.jsonc bindings.
interface Env {
// D1 Database
DB: D1Database;
// KV Namespaces
KV_SESSIONS: KVNamespace;
KV_CACHE: KVNamespace;
// R2 Bucket (optional — omit binding to disable file uploads)
R2_ASSETS?: R2Bucket;
// Static assets (auto-provided by CF when `assets` dir is configured)
ASSETS?: Fetcher;
// Vars
APP_URL: string;
// Gate the Admin Panel "Reset everything" command. Disabled by default
// (irreversibly destructive). Set to "true" / "1" / "yes" in
// wrangler.jsonc vars to expose the button in the admin UI.
ENABLE_RESET?: string;
// When set to "true" / "1" / "yes", skip the one-week cooldown between
// requesting a reset and being allowed to confirm it. 2FA is still
// required even when this is set.
NO_RESET_COOLDOWN?: string;
// Cloudflare Secrets Store binding for the master encryption key used to
// wrap OAuth client secrets, OAuth source credentials, and other
// sensitive site_config fields at rest in D1. Optional — when unset the
// worker stores those fields in plaintext (legacy behaviour). The
// stored secret value must be a 32-byte AES-GCM key encoded as
// base64url. See Admin Panel → Settings → Danger Zone → "Migrate
// secrets to Secret Store" for the migration flow.
SECRETS_KEY?: SecretsStoreSecret;
}