Next.js · Senior · Question 39 of 75
How does the Edge runtime differ from Node.js for routes?
- ✓Correct answer: Edge - a reduced set of Web APIs and fast startup; Node.js - the full API
- 2Edge is simply a newer and faster version of Node.js
- 3Edge code runs in the user's browser, like a Service Worker
Explanation
The Edge runtime runs closer to the user and starts quickly, but it lacks fs, many npm packages and native modules, plus it has size limits. Node.js is recommended for most apps. In Next.js 16, proxy runs only on Node.js.