502 Bad Gateway

Have you started the Next.js server with npm run dev (for dev) or npm run start (for production)?