We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44f86f3 commit ba6affbCopy full SHA for ba6affb
src/react-app-env.d.ts
@@ -6,3 +6,26 @@
6
*/
7
8
/// <reference types="react-scripts" />
9
+
10
+import { UrlString } from '@gridsuite/commons-ui';
11
12
+type EnvDev = {
13
+ REACT_APP_USE_AUTHENTICATION: true;
14
+ REACT_APP_SRV_STUDY_URI: string;
15
+};
16
17
+type EnvProd = {
18
+ REACT_APP_USE_AUTHENTICATION: false;
19
+ REACT_APP_API_GATEWAY: string;
20
+ REACT_APP_WS_GATEWAY: string;
21
22
23
+type EnvCompile = EnvProd | EnvDev;
24
25
+declare global {
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
+ namespace NodeJS {
28
29
+ interface ProcessEnv extends EnvCompile {}
30
+ }
31
+}
0 commit comments