Next.js · Deployment · Mid-Level · Scenario
How do you run Next.js behind a reverse proxy?
Short Interview Answer
Set trust/host configuration as needed, forward proto/host headers, and ensure asset prefixes if under subpath.
Detailed Explanation
Terminate TLS at proxy. Align cookie Secure flags. Test redirects don't break hosts.