aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/BackendConfig.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/xtext/BackendConfig.ts')
-rw-r--r--subprojects/frontend/src/xtext/BackendConfig.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/subprojects/frontend/src/xtext/BackendConfig.ts b/subprojects/frontend/src/xtext/BackendConfig.ts
new file mode 100644
index 00000000..41737c0b
--- /dev/null
+++ b/subprojects/frontend/src/xtext/BackendConfig.ts
@@ -0,0 +1,13 @@
1/* eslint-disable @typescript-eslint/no-redeclare -- Declare types with their companion objects */
2
3import { z } from 'zod';
4
5export const ENDPOINT = 'config.json';
6
7const BackendConfig = z.object({
8 webSocketURL: z.string().url(),
9});
10
11type BackendConfig = z.infer<typeof BackendConfig>;
12
13export default BackendConfig;