-
Notifications
You must be signed in to change notification settings - Fork 25
/
process.env.d.ts
33 lines (32 loc) · 1.02 KB
/
process.env.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
/**
* Declare known environment variables.
* Enables auto-completion when using "process.env.".
* Makes it easier to find env vars, and helps avoid typo mistakes.
*
* Unlisted env vars will still be usable.
*
* @see https://stackoverflow.com/a/53981706/2391795
*/
declare global {
namespace NodeJS {
interface ProcessEnv {
// NRN env variables
IS_SERVER_INITIAL_BUILD: '1' | undefined;
NODE_ENV: 'development' | 'production';
NEXT_PUBLIC_APP_BUILD_ID: string;
NEXT_PUBLIC_APP_NAME: string;
NEXT_PUBLIC_APP_VERSION: string;
NEXT_PUBLIC_APP_VERSION_RELEASE: string;
NEXT_PUBLIC_APP_STAGE: 'test' | 'development' | 'staging' | 'production';
NEXT_PUBLIC_BUILD_TIME: string;
NEXT_PUBLIC_BUILD_TIMESTAMP: string;
NEXT_PUBLIC_MATOMO_URL: string;
NEXT_PUBLIC_MATOMO_SITE_ID: string;
NEXT_INFURA_PROJECT_ID: string;
}
}
}
// Trick to make this a valid module:
// If this file has no import/export statements (i.e. is a script)
// convert it into a module by adding an empty export statement.
export {};