PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Written By
Views

How can I view console.log() statements when deploying a Next.js app on Vercel?

I have a Next.js app deployed on Vercel, and I need to view the console.log() statements when any server-side or client-side rendered page is called. I have noticed that I can see these logs when running the app locally in my terminal, but I cannot see them in Vercel's function logs.

I am specifically interested in viewing these logs to debug an issue where a page that works on my local system is resulting in a 504 error when deployed to Vercel. The page's API call never takes more than 3 seconds.

What are some ways to view these console logs in Vercel, or is there an alternative way to debug the 504 error that I am experiencing?

However, I am not able to see these logs in Vercel's function logs. Is there any other way to view these logs?

enter image description here

but I think this happens on a site called "favicon.ico`

This favicon.ico link opens/works on the local system next to dev mode. but in Vercel, this gives 504 errors.

Thank you for your help!

Comments (0)

loading comments