-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathenv.d.ts
More file actions
37 lines (29 loc) · 883 Bytes
/
env.d.ts
File metadata and controls
37 lines (29 loc) · 883 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
33
34
35
36
37
interface EnvironmentVariables {
readonly PORT: string
readonly NODE_ENV: 'development' | 'production' | 'test'
readonly WHITELISTED_ORIGINS: string
readonly VITE_LOG_LEVEL:
| 'debug'
| 'error'
| 'fatal'
| 'info'
| 'trace'
| 'warning'
readonly VITEST_ENV: 'devnet' | 'testnet' | 'mainnet'
readonly VITE_BASE_URL: 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 {}
}
// 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