For me, the issue was that the console.log was inside of a try-catch block. If the try failed, then the console log did not display in Vercel logs even when the failure came after the console log itself. So I moved all my console logs out of the try block.