Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

enter image description here

like image 686
Fabian Bosler Avatar asked Jun 27 '26 00:06

Fabian Bosler


1 Answers

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.

like image 144
Rahul Gupta-Iwasaki Avatar answered Jun 28 '26 19:06

Rahul Gupta-Iwasaki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!