I need HTTP context for the next.js API
const httpContext = require("express-http-context");
app.use(httpContext.middleware);
httpContext.set("res", res);
Is there a way to use middleware in next.js 12 to get the same functionality where I can access the API response in any part of the server api
asked Apr 3, 2022 at 12:03
Prajwal Raju P
3181 gold badge4 silver badges14 bronze badges
lang-js