Adding code syntax highlighting to Next.JS is insanely simple with bright. I started with this StackOverflow then did another Google search to find it.