Skip to main content

Namespace: middlewares

@headstartwp/next.middlewares

@headstartwp/next/middlewares

The middlewares export of the `@headstartwp/next' package.

Usage

import { appMiddleware } from '@headstartwp/next/middlewares';

Functions

AppMiddleware

AppMiddleware(req): Promise<NextResponse<unknown>>

Parameters

NameType
reqNextRequest

Returns

Promise<NextResponse<unknown>>

Defined in

packages/next/src/middlewares/appMidleware.ts:15