forked from unionlabs/union
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.d.ts
More file actions
26 lines (24 loc) · 809 Bytes
/
environment.d.ts
File metadata and controls
26 lines (24 loc) · 809 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
interface EnvironmentVariables {
readonly NODE_ENV: "development" | "production" | "test"
readonly PORT: string
readonly APP_URL: string
readonly VERSION: string // from package.json#version
readonly COMMIT_SHA: string
readonly VITE_APP_VERSION: string
readonly ETHERSCAN_API_KEY: string
// `vite-plugin-inspect`
readonly INSPECT: string
// `rollup-plugin-visualizer`
readonly VISUALIZE: string
readonly DEBUG_TABLE: "true" | "false"
readonly ENVIRONMENT: "development" | "preview" | "staging" | "production"
}
// Node.js environment variables types
declare namespace NodeJS {
interface ProcessEnv extends EnvironmentVariables {}
}
// Vite environment variables types
interface ImportMetaEnv extends EnvironmentVariables {}
interface ImportMeta {
readonly env: ImportMetaEnv
}