aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/BackendConfig.ts
blob: e7043bd56378ea137e8e8640f4f075c16dd98fae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */

/* eslint-disable @typescript-eslint/no-redeclare -- Declare types with their companion objects */

import { z } from 'zod';

export const ENDPOINT = 'config.json';

const BackendConfig = z.object({
  webSocketURL: z.string().url().optional(),
});

type BackendConfig = z.infer<typeof BackendConfig>;

export default BackendConfig;