File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
VITE_API_GATEWAY = api/gateway
2
2
VITE_WS_GATEWAY = ws/gateway
3
+ VITE_DEBUG_REQUESTS = false
Original file line number Diff line number Diff line change 7
7
8
8
/// <reference types="vite-plugin-svgr/client" />
9
9
/// <reference types="vite/client" />
10
+
11
+ /* Don't know why but seem that TypeScript merge definitions of these two interfaces with existing ones.
12
+ * https://vitejs.dev/guide/env-and-mode#intellisense-for-typescript
13
+ */
14
+ import { UrlString } from '@gridsuite/commons-ui' ;
15
+
16
+ interface ImportMetaEnv {
17
+ /* From @gridsuite/commons-ui */
18
+ readonly VITE_API_GATEWAY : UrlString ;
19
+ readonly VITE_WS_GATEWAY : UrlString ;
20
+ // readonly VITE_DEBUG_REQUESTS?: boolean;
21
+ readonly VITE_DEBUG_HOOK_RENDER ?: boolean ;
22
+ /* From this app */
23
+ readonly VITE_DEBUG_REQUESTS : boolean ;
24
+ }
25
+
26
+ interface ImportMeta {
27
+ readonly env : ImportMetaEnv ;
28
+ }
You can’t perform that action at this time.
0 commit comments