I have a React application that’s currently running in Vercel. When I go to runtime logs, they are completely empty — even though I have traffic coming into the website in real time.
Is there a specific config that needs to be set to get React apps to log correctly? Referring to request logs, not console.log()s.
Is your application client-side rendered static site?
Static site requests don’t appear in runtime, only function invocations do. This is expected behavior for React apps without server-side functionality.
If your React app is purely client-side rendered (CSR) or a static site, this is expected. Vercel runtime logs only capture server-side invocations, like API routes or serverless functions. Static pages served by React won’t appear in runtime logs, even if traffic is coming in.
A couple of things you could check:
Are you using Next.js with any server-side functions or API routes? Those logs will show.
If not, you’d need to route logging through a serverless function to capture requests in Vercel logs.