-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathenv.d.ts
More file actions
33 lines (25 loc) · 758 Bytes
/
env.d.ts
File metadata and controls
33 lines (25 loc) · 758 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
interface Env {
readonly PORT: string
readonly ENVIRONMENT: 'development' | 'production'
readonly LOGGING?: 'verbose' | 'normal' | 'silent' | undefined
readonly APP_VERSION: string
// Cloudflare R2
readonly S3_ENDPOINT: string
readonly S3_BUCKET_NAME: string
readonly S3_ACCESS_KEY_ID: string
readonly S3_SECRET_ACCESS_KEY: string
readonly S3_PUBLIC_DEVELOPMENT_URL: string
readonly ASSETS: Fetcher
}
// Node.js `process.env` auto-completion
declare namespace NodeJS {
interface ProcessEnv extends Env {
readonly NODE_ENV: 'development' | 'production'
}
}
// Bun/vite `import.meta.env` auto-completion
interface ImportMetaEnv extends Env {}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare const __BUILD_VERSION__: string