Carbon
AdaptersNextFunctions

createHandler

createHandler(handle): Handler

Creates a Next.js handler function using the provided handle and handler options

Parameters

ParameterTypeDescription
handleHandleThe handle function to process requests

Returns

Handler

The created handler function

Example

const handler = createHandler(handle, { ... })
export { handler as GET, handler as POST }

On this page

Edit on GitHub