-
Notifications
You must be signed in to change notification settings - Fork 165
Expand file tree
/
Copy pathenv-augment.d.ts
More file actions
57 lines (49 loc) · 2.14 KB
/
Copy pathenv-augment.d.ts
File metadata and controls
57 lines (49 loc) · 2.14 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Augment the wrangler-generated `Cloudflare.Env` with secrets / vars set at
// deploy time (via `wrangler secret put`, dashboard, or `.dev.vars`) that
// don't show up in `wrangler types` output because they aren't declared in
// wrangler.jsonc, but are what `env.X` resolves to at runtime.
declare global {
namespace Cloudflare {
interface Env {
// Observability
AXIOM_TOKEN?: string;
AXIOM_DATASET?: string;
AXIOM_TRACES_URL?: string;
AXIOM_TRACES_SAMPLE_RATIO?: string;
SENTRY_DSN?: string;
VITE_PUBLIC_SENTRY_DSN?: string;
VITE_PUBLIC_POSTHOG_KEY?: string;
VITE_PUBLIC_POSTHOG_HOST?: string;
// Datastore. Prod uses HYPERDRIVE when the binding exists; direct
// DATABASE_URL is only selected when explicitly requested for local/test.
DATABASE_URL?: string;
EXECUTOR_DIRECT_DATABASE_URL?: string;
// Plugin blob seam backend (wrangler.jsonc `r2_buckets`). Declared here
// (optional) rather than regenerating worker-configuration.d.ts: test
// workers and older local setups run without the binding, and the db
// layer falls back to the Postgres `blob` table when absent. Typed via
// @cloudflare/workers-types (not the wrangler-generated global) to match
// what `@executor-js/cloudflare/blob-store` accepts.
BLOBS?: import("@cloudflare/workers-types").R2Bucket;
// SSRF / private-network egress guard. Unset in production -> the guard is
// ON; the test workers set "true" so fixtures can reach localhost.
ALLOW_LOCAL_NETWORK?: string;
// Billing
AUTUMN_SECRET_KEY?: string;
/** Optional Autumn base-URL override (Autumn emulator in tests/dev). */
AUTUMN_API_URL?: string;
/** Optional WorkOS base-URL override (WorkOS emulator in tests/dev). */
WORKOS_API_URL?: string;
// MCP
EXECUTOR_MCP_DEBUG?: string;
MCP_AUTHKIT_DOMAIN?: string;
MCP_RESOURCE_ORIGIN?: string;
NODE_ENV?: string;
// Shared with frontend
VITE_PUBLIC_SITE_URL?: string;
VITE_PUBLIC_OTLP_TRACES_URL?: string;
VITE_PUBLIC_OTLP_SAMPLE_RATIO?: string;
}
}
}
export {};