Custom NextRequest
Unanswered
Ichneumonid wasp posted this in #help-forum
Ichneumonid waspOP
Is there a way to extend the functionality of NextRequest? I'm looking for a way to do something like:
Where
export async function GET(request: ListResourceRequest) {
...
}Where
ListResourceRequest is inheriting everything from NextRequest but adding new properties from the request, validated with Zod.