The package allows you to create a chain of native next.js middlewares without any modifications (i.e., you can add any ready-made middleware to the chain)
// middleware.ts
import { chain } from "@nimpl/middleware-chain";
export default chain([
intlMiddleware,
authMiddleware,
customMiddleware,
]);Visit https://nimpl.tech/middleware-chain to view the full documentation.
Using npm: n the format of its API.
npm i @nimpl/middleware-chainUsing yarn:
yarn add @nimpl/middleware-chainPlease consider giving a star if you like it, it shows that the package is useful and helps continue work on this and other packages.
Create issues for identified issues, desired getters, or various improvements.