-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenvironment.d.ts
38 lines (36 loc) · 1.33 KB
/
environment.d.ts
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
interface EnvironmentVariables {
readonly ALLOW_TTL_MOD: 'true' | 'false'
readonly NODE_ENV: 'development' | 'production' | 'test'
readonly ENVIRONMENT: 'development' | 'production' | 'stage' | 'test'
readonly PORT: string
readonly LLAMAFOLIO_ID: string
readonly ANKR_ID: string
readonly ALCHEMY_ID: string
readonly INFURA_ID: string
readonly DATABASE_URL: string
readonly ENABLE_DATABASE_LOGGING: 'true' | 'false'
readonly IS_DEMO: 'true' | 'false'
readonly AIRSTACK_API_KEY: string
readonly CACHE_TTL: number
readonly POAP_API_TOKEN: string
readonly REDIS_URL: string
readonly ENS_API_URL: string
}
// Cloudflare Workers
interface Env extends EnvironmentVariables {
// ens is a binded service in wrangler.toml
readonly ens: Record<string, unknown>
// EFP_DEMO_KV is a binded production service in wrangler.toml
// biome-ignore lint/correctness/noUndeclaredVariables: <explanation>
readonly EFP_DEMO_KV: KVNamespace
// EFP_DATA_CACHE is a binded production service in wrangler.toml
// biome-ignore lint/correctness/noUndeclaredVariables: <explanation>
readonly EFP_DATA_CACHE: KVNamespace
// generated in ci during deployment
readonly COMMIT_SHA: string
}
// Node.js
// biome-ignore lint/style/noNamespace: <explanation>
declare namespace NodeJS {
interface ProcessEnv extends EnvironmentVariables {}
}