CodeZettaInterview Hub

Next.js · Route Handlers · Mid-Level · Comparison

What are Edge vs Node runtimes for route handlers?

Short Interview Answer

Edge is lighter/faster cold start with API limits; Node supports full Node APIs and heavier libraries.

Detailed Explanation

Choose Edge for simple auth/redirects/geo. Use Node for ORMs, file system, or native deps. Know compatibility constraints.

Did you know this answer?