We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69c960 commit 1c28ff5Copy full SHA for 1c28ff5
packages/build-config/src/runtime.ts
@@ -4,6 +4,11 @@ const RuntimeConfig = {
4
debug: {},
5
};
6
7
+const settings = globalThis.sessionStorage?.getItem('WarpDriveRuntimeConfig');
8
+if (settings) {
9
+ Object.assign(RuntimeConfig, JSON.parse(settings));
10
+}
11
+
12
export function getRuntimeConfig(): typeof RuntimeConfig {
13
return RuntimeConfig;
14
}
@@ -18,4 +23,5 @@ export function getRuntimeConfig(): typeof RuntimeConfig {
18
23
*/
19
24
export function setLogging(config: Partial<LOG_CONFIG>): void {
20
25
Object.assign(RuntimeConfig.debug, config);
26
+ globalThis.sessionStorage?.setItem('WarpDriveRuntimeConfig', JSON.stringify(RuntimeConfig));
21
27
0 commit comments