Skip to content

UpstreamSchema

const UpstreamSchema: ZodDiscriminatedUnion<[ZodObject<{ headers: ZodOptional<ZodRecord<ZodString, ZodString>>; rewritePath: ZodOptional<ZodFunction<$ZodFunctionArgs, $ZodFunctionOut>>; target: ZodString; type: ZodLiteral<"url">; }, $strip>, ZodObject<{ rewritePath: ZodOptional<ZodFunction<$ZodFunctionArgs, $ZodFunctionOut>>; service: ZodString; type: ZodLiteral<"service-binding">; }, $strip>, ZodObject<{ handler: ZodFunction<$ZodFunctionArgs, $ZodFunctionOut>; type: ZodLiteral<"handler">; }, $strip>], "type">

Defined in: src/config/schema.ts:44