Next.js · Junior · Question 37 of 75

Where does a console.log from a server component appear?

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.

Further reading

Problem with a question

Next.js · Junior · question 37

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz