In https://youtu.be/19g66ezsKAg?si=J-HaiLI03I9UgzTk&t=2470, Lee Robinson mentions that next.js runtime can now not only run in Edge but also in Nodejs. I asked v0 about that and its answer was:
In Next.js, middleware is designed to run exclusively in the Edge runtime
I also couldn’t find any documentation about that.
Can the middleware run with nodejs and, if yes, how can that be done?
anshumanb
(Anshuman Bhardwaj)
2
Hi @damiencassou-wolters, that is correct.
Next.js Middleware only support the Edge Runtime as of today.
Node.js Runtime support for the Next.js Middleware is still work in progress.
1 Like
system
(system)
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.