Skip to content

A next.js server middleware wrapper which exposes a `connect` liked router

Notifications You must be signed in to change notification settings

xinpianchang/next-middleware

Repository files navigation

usage

const router = require('@newstudios/next-middleware')

router.use((req, res, next) => {
  // req and res process
  // ....

  // continue next middleware
  next()
})

About

A next.js server middleware wrapper which exposes a `connect` liked router

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published