Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

desktopBootstrap.ts

18 lines571 Bytes

1import * as Schema from "effect/Schema";
2​
3import { PortSchema } from "./baseSchemas.ts";
4​
5export const DesktopBackendBootstrap = Schema.Struct({
6 mode: Schema.Literal("desktop"),
7 noBrowser: Schema.Boolean,
8 port: PortSchema,
9 t3Home: Schema.String,
10 host: Schema.String,
11 desktopBootstrapToken: Schema.String,
12 tailscaleServeEnabled: Schema.Boolean,
13 tailscaleServePort: PortSchema,
14 otlpTracesUrl: Schema.optional(Schema.String),
15 otlpMetricsUrl: Schema.optional(Schema.String),
16});
17​
18export type DesktopBackendBootstrap = typeof DesktopBackendBootstrap.Type;