'Vercel next.js deployment function logs without third party
Been toying around with Vercel for deployment and really like the simplicity. Maybe I am not seeing something here, but how can I get visibility into a function without piping to a third-party?
I've got this pages/api/hello.js-api
export default (req, res) => {
console.log("yolo");
res.statusCode = 200;
res.json({ name: "John Doe" });
};
I can then see the following results in the dashboard. But where or how could I see the yolo and I missing something here? Is there a different way for proper debugging?
Solution 1:[1]
While Vercel seems to have fixed the issue with console.log output not showing up in their online dashboard, I still found it pretty frustrating how quickly logs disappeared from their dashboard.
I found using vercel logs --follow <deployment-name> from my terminal to be more useful for debugging issues with my deployed functions.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Rahul Gupta-Iwasaki |

