Next.js Discord

Discord Forum

Hono as NextJs Backend

Unanswered
Alligator mississippiensis posted this in #help-forum
Open in Discord
Alligator mississippiensisOP
Hi everyone, i have a few questions about having hono as nextjs backend. I would like to switch to hono because of the management of middlewares in NextJs backend (if someone has some suggestion to manage middlewares efficiently on the standard nextjs backend i might just stay with that, but for now it seem to be very messy to work with middlewares that must be all in the same file and you have to do pathname matching to execute the right middleware).
1. However, are there any drawbacks in using hono as middlewares?
2. I have seen some example projects of hono + nextjs and hono is marked to run on the edge, should i run it on the edge too? If yes, what are the differences?
3. Is hono suitable to be used with nextauth?

0 Replies