/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/v1/config/server.ts
19 строк
831 B
Dax
refactor(core): move v1 schemas into core (#30473)
03 июн 2026, 05:42
Не верифицирован
03 июн 2026, 05:42
8345255
Код
Авторство
О чём код?
export * as ConfigServerV1 from "./server" import { Schema } from "effect" import { PositiveInt } from "../../schema" export const Server = Schema.Struct({ port: Schema.optional(PositiveInt).annotate({ description: "Port to listen on", }), hostname: Schema.optional(Schema.String).annotate({ description: "Hostname to listen on" }), mdns: Schema.optional(Schema.Boolean).annotate({ description: "Enable mDNS service discovery" }), mdnsDomain: Schema.optional(Schema.String).annotate({ description: "Custom domain name for mDNS service (default: opencode.local)", }), cors: Schema.optional(Schema.mutable(Schema.Array(Schema.String))).annotate({ description: "Additional domains to allow for CORS", }), }).annotate({ identifier: "ServerConfig" }) export type Server = Schema.Schema.Type<typeof Server>