Vue · Middle · Question 35 of 75

Why does reloading /about return 404 in production with createWebHistory?

Explanation

Client-side routes exist only in JavaScript. Configure the host (nginx try_files, Netlify/Vercel rewrites) to serve the SPA entry. Hash mode avoids this but produces /#/about URLs.

Further reading

Problem with a question

Vue · Middle · question 35

Test yourself

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

Take this quiz