|
1 | 1 | // Globals injected by Webpack DefinePlugin
|
2 | 2 | /* eslint-disable no-underscore-dangle */
|
3 |
| -declare const __DEV__: boolean; |
4 |
| -declare const __TEST__: boolean; |
| 3 | +/** |
| 4 | + * NUSMods deployment environment. |
| 5 | + * |
| 6 | + * **Note:** although these environments may share the same name as |
| 7 | + * `NODE_ENV` and other envs, there are subtle differences. Definitions: |
| 8 | + * |
| 9 | + * - `production`: a production deployment of NUSMods, i.e. a deployment meant to |
| 10 | + * be used by the general public. |
| 11 | + * - `staging`: a deployment of NUSMods's main development branch, which is |
| 12 | + * not meant to be used by the general public but which may be promoted to |
| 13 | + * production at any point. |
| 14 | + * - `preview`: a deployment of work-in-progress branches, e.g. PR deploy |
| 15 | + * previews. |
| 16 | + * - `test`: we are in a test environment, e.g. a jest test run. |
| 17 | + * - `development`: all other situations. |
| 18 | + */ |
| 19 | +declare const NUSMODS_ENV: 'development' | 'production' | 'staging' | 'preview' | 'test'; |
| 20 | + |
5 | 21 | declare const DATA_API_BASE_URL: string | undefined;
|
6 | 22 | declare const VERSION_STR: string | undefined;
|
7 | 23 | declare const DISPLAY_COMMIT_HASH: string | undefined;
|
8 | 24 | declare const DEBUG_SERVICE_WORKER: boolean;
|
9 |
| -declare const VERCEL_ENV: string; |
10 |
| -declare const VERCEL_GIT_COMMIT_REF: string; |
11 | 25 | /* eslint-enable no-underscore-dangle */
|
12 | 26 |
|
13 | 27 | /**
|
|
0 commit comments