Next.js · Senior · Question 14 of 75
Which runtime does proxy.ts use in Next.js 16?
- ✓Correct answer: Node.js, with no option to switch to Edge
- 2Edge only; Node.js APIs aren't available in it
- 3It's chosen automatically based on load
Explanation
In Next.js 16, proxy always runs on Node.js: familiar libraries and APIs are available. If you specifically need the edge runtime, stay on the deprecated middleware for now. The runtime of routes (pages, Route Handlers) is still configured separately.