UNPKG

rivetkit

Version:

Lightweight libraries for building stateful actors on edge platforms

17 lines (15 loc) 417 B
import { z } from "zod"; import { RunConfigSchema } from "@/registry/run-config"; export const ConfigSchema = RunConfigSchema.removeDefault() .extend({ hostname: z .string() .optional() .default(process.env.HOSTNAME ?? "127.0.0.1"), port: z .number() .optional() .default(Number.parseInt(process.env.PORT ?? "8080")), }) .default({}); export type InputConfig = z.input<typeof ConfigSchema>;