6 ms·
Middleware does work with self-hosting[1]. It’s a more limited runtime that’s based on web standard APIs, which creates optionality for running it in high perfo
by Rauchg 3y ago
Middleware does work with self-hosting[1]. It’s a more limited runtime that’s based on web standard APIs, which creates optionality for running it in high performance / resource constrained scenarios.
[1] https://nextjs.org/docs/app/building-your-application/deploying#middleware https://nextjs.org/docs/app/building-your-application/deploy...
- verdverm 3y agoIt _can_ work, but _won't_ for most real world workloads Beyond the runtime limitations, it is poorly designed and requires you to effectively write a router when the rest of the system has automatic routing assembly