Closed OZZlE closed 4 years ago
Seems like the options are sent down as well so this should work??
const withImages = require('next-images')
module.exports = withImages({
experimental: {
documentMiddleware: true
}
})
Even though this option is not related to withImages.. If that is the case would be good to have in Readme :)
For example: https://www.npmjs.com/package/nextjs-basic-auth-middleware
Requires next.config.js: