aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/BackendConfig.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-04 18:08:59 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-09-04 20:33:55 +0200
commit0e7c55f7ab8d496e81a3dbd53f14e0c46cb27fa6 (patch)
tree3df27544768e96ec8508452d07b9c20c30f374b0 /subprojects/frontend/src/xtext/BackendConfig.ts
parentrefactor(frontend): graph visualizer performance (diff)
downloadrefinery-0e7c55f7ab8d496e81a3dbd53f14e0c46cb27fa6.tar.gz
refinery-0e7c55f7ab8d496e81a3dbd53f14e0c46cb27fa6.tar.zst
refinery-0e7c55f7ab8d496e81a3dbd53f14e0c46cb27fa6.zip
refactor: server environemntal variables
* Prefix each variable with REFINERY_ * If not public host is specified, allow all origings and compute the WebSocket address on the client from the origin.
Diffstat (limited to 'subprojects/frontend/src/xtext/BackendConfig.ts')
-rw-r--r--subprojects/frontend/src/xtext/BackendConfig.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/frontend/src/xtext/BackendConfig.ts b/subprojects/frontend/src/xtext/BackendConfig.ts
index 4c7eac5f..e7043bd5 100644
--- a/subprojects/frontend/src/xtext/BackendConfig.ts
+++ b/subprojects/frontend/src/xtext/BackendConfig.ts
@@ -11,7 +11,7 @@ import { z } from 'zod';
11export const ENDPOINT = 'config.json'; 11export const ENDPOINT = 'config.json';
12 12
13const BackendConfig = z.object({ 13const BackendConfig = z.object({
14 webSocketURL: z.string().url(), 14 webSocketURL: z.string().url().optional(),
15}); 15});
16 16
17type BackendConfig = z.infer<typeof BackendConfig>; 17type BackendConfig = z.infer<typeof BackendConfig>;