Vue · Middle · Question 35 of 75
Why does reloading /about return 404 in production with createWebHistory?
- ✓Correct answer: The server has no file at
/about; it must fall back toindex.htmlfor unknown paths - 2HTML5 history mode doesn't support nested paths
- 3The router must be created with
createMemoryHistoryin production
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.