diff options
Diffstat (limited to 'subprojects/frontend/src/xtext/BackendConfig.ts')
-rw-r--r-- | subprojects/frontend/src/xtext/BackendConfig.ts | 13 |
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 | |||
3 | import { z } from 'zod'; | ||
4 | |||
5 | export const ENDPOINT = 'config.json'; | ||
6 | |||
7 | const BackendConfig = z.object({ | ||
8 | webSocketURL: z.string().url(), | ||
9 | }); | ||
10 | |||
11 | type BackendConfig = z.infer<typeof BackendConfig>; | ||
12 | |||
13 | export default BackendConfig; | ||