DPDK Architecture  ->  Bootstrap (v3.0.5)

Extended
>= v1.0.1

To add your own middleware to the bootstrap use the following function:

const NextBootstrap = require('@dpdk/bootstrap');
const bootstrap = new NextBootstrap(__dirname, process.cwd(), nextConfig, config);

bootstrap.addMiddleware((req, res, next) => {
  // Custom code here
  next();
});

bootstrap.init();

Additional Express Middleware Documentation: http://expressjs.com/en/guide/using-middleware.html

Last modifiedFriday, April 30, 2021, 12:00:21 PM UTC
Last authorColin van Eenige
Commit ID4c7a701