-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.d.ts
32 lines (31 loc) · 1.32 KB
/
build.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
/*
* Data added automatically from the build
*
* Do not change. Use global.d.ts to add global data
*/
/** Env constant set to (package.json).name */
declare const PACKAGE_NAME: string;
/** Env constant set to (package.json).version */
declare const PACKAGE_VERSION: string;
/** Env constant set to the git commit hash */
declare const COMMIT_HASH: string;
/** Env constant set to the 7 first characters of the git commit hash */
declare const COMMIT_HASH_SHORT: string;
/** Build ID generated by NextJS (it will be "development" in non-production) */
declare const BUILD_ID: string;
/** Env constant set to `true` for the production build, `false` for development */
declare const IS_PRODUCTION: boolean;
/** Env constant set to `true` when executed in server side */
declare const IS_SERVER: boolean;
/** Env constant set to `true` when executed by tests */
declare const IS_TEST: boolean;
/** Env contant set to `true` when i18n is enabled
* (next-i18next.config exists and properly configured)
*/
declare const I18N_ENABLED: boolean;
/** List of available languages (folders) from the i18n config */
declare const AVAILABLE_LOCALES: AvailableLocale[];
/** List of available i18n languages (auto-generated from i18n config) */
type AvailableLocale = 'en' | 'es';
/** Configuration from logger.config.js */
declare const LOGGER_CONFIG: {};