Next.js Authentication with Auth0 — The Ultimate Guide

I’ve worked with react, nextjs and worked with custom server on top of nextjs latest /api but i became more confused after reading this article. This is a hard read especially the part explaining serverless function.