AppRouteHandlerFnContext: {
    params?: Record<string, string | string[]>;
}

This contains params, which is an object containing the dynamic route parameters for the current route.

See https://nextjs.org/docs/app/api-reference/file-conventions/route#context-optional

Type declaration

  • Optional params?: Record<string, string | string[]>