Next.js · Junior · Question 74 of 75

How do you serve the whole app under /docs (e.g. acme.com/docs)?

Explanation

basePath is applied automatically to <Link> and router.push. It's set at build time and can't change without rebuilding.

Further reading

Problem with a question

Next.js · Junior · question 74

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