What runtime does Next use for middleware locally?
Answered
American black bear posted this in #help-forum
American black bearOP
I'm trying to understand the runtime environment for Next.js middleware:
In local development mode (next dev), does Next.js run middleware in a Node.js environment or an Edge runtime simulator?
In local development mode (next dev), does Next.js run middleware in a Node.js environment or an Edge runtime simulator?
2 Replies
It uses Edge locally and on production
Answer
American black bearOP
Okay, great, thanks