-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathprocess.env.d.ts
34 lines (32 loc) · 1.04 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
34
/**
* 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 {
// Server variables
NODE_ENV: 'test' | 'development' | 'production';
SENTRY_AUTH_TOKEN: string;
// Public variables
NEXT_PUBLIC_APP_STAGE: 'test' | 'development' | 'staging' | 'production';
NEXT_PUBLIC_APP_URL: string;
NEXT_PUBLIC_APP_NAME: string;
NEXT_PUBLIC_APP_VERSION: string;
NEXT_PUBLIC_API_ENDPOINT: string;
NEXT_PUBLIC_BUILD_TIME: string;
NEXT_PUBLIC_SENTRY_DSN?: string;
NEXT_PUBLIC_LOGFLARE_KEY: string;
NEXT_PUBLIC_LOGFLARE_STREAM: 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 {};