Variable RewriteHandlerSchemaConst
RewriteHandlerSchema: ZodObject<
{
handler: ZodLiteral<"rewrite">;
strip_path_prefix: ZodOptional<ZodString>;
strip_path_suffix: ZodOptional<ZodString>;
uri: ZodOptional<ZodString>;
uri_substring: ZodOptional<
ZodArray<
ZodObject<
{
find: ZodString;
limit: ZodOptional<ZodNumber>;
replace: ZodString;
},
"strip",
ZodTypeAny,
{ find: string; limit?: number; replace: string },
{ find: string; limit?: number; replace: string },
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
handler: "rewrite";
strip_path_prefix?: string;
strip_path_suffix?: string;
uri?: string;
uri_substring?: { find: string; limit?: number; replace: string }[];
},
{
handler: "rewrite";
strip_path_prefix?: string;
strip_path_suffix?: string;
uri?: string;
uri_substring?: { find: string; limit?: number; replace: string }[];
},
> = ...
Rewrite handler schema - URI rewriting