-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathenv.d.ts
More file actions
32 lines (24 loc) · 831 Bytes
/
env.d.ts
File metadata and controls
32 lines (24 loc) · 831 Bytes
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
interface EnvironmentVariables {
readonly PORT: string
readonly WHITELISTED_ORIGINS: string
readonly VITE_LOG_LEVEL: 'info' | 'warn' | 'silent'
readonly VITEST_ENV: 'devnet' | 'testnet' | 'mainnet'
readonly TEMPO_RPC_KEY: string
readonly CLOUDFLARE_ACCOUNT_ID: string
readonly CLOUDFLARE_DATABASE_ID: string
readonly CLOUDFLARE_D1_TOKEN: string
readonly CLOUDFLARE_D1_ENVIRONMENT: 'local' | (string & {})
}
// Node.js `process.env` auto-completion
declare namespace NodeJS {
interface ProcessEnv extends EnvironmentVariables {
readonly NODE_ENV: 'development' | 'production'
}
}
// Bun/vite `import.meta.env` auto-completion
interface ImportMetaEnv extends EnvironmentVariables {}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare const __BASE_URL__: string
declare const __BUILD_VERSION__: string