DEV Community

Discussion on: Use middleware in Next.js without custom server

Collapse
 
robbiegm profile image
RobbieGM • Edited

Why not just export the handler with middleware already applied to it? From the docs it seems like that's the recommended way to do it.