Next.js · Junior · Question 15 of 75

At what URL is the file public/logo.png served?

Explanation

The contents of public are served from the site root. Favicons, robots.txt and static images go there. These files don't go through the build and don't get a hash in their name, so caching must be configured separately. /_next/static is the path for build-generated assets.

Further reading

Problem with a question

Next.js · Junior · question 15

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