No overload matches this call.
The last overload gave the following error.
Argument of type 'MiddlewareHandler<Env>' is not assignable to parameter of type 'MiddlewareHandler<Env, "/api/ui", {}>'.
Types of parameters 'c' and 'c' are incompatible.
Type 'Context<Env, "/api/ui", {}>' is missing the following properties from type 'Context<Env, string, {}>': #rawRequest, #req, #var, #status, and 9 more.
No overload matches this call.
The last overload gave the following error.
Argument of type 'MiddlewareHandler<Env>' is not assignable to parameter of type 'MiddlewareHandler<Env, "/api/ui", {}>'.
Types of parameters 'c' and 'c' are incompatible.
Type 'Context<Env, "/api/ui", {}>' is missing the following properties from type 'Context<Env, string, {}>': #rawRequest, #req, #var, #status, and 9 more.