Next.js · Junior · Question 37 of 75
Where does a console.log from a server component appear?
- ✓Correct answer: In the terminal where the Next.js server is running
- 2In the user's browser console
- 3Nowhere: logging is disabled in server components
Explanation
A server component runs on the server (or at build time), so its logs go to the Node.js process output. In development, Next.js may mirror server logs to the browser for convenience, but the code still runs on the server.