I'm using Vue-CLI to create Vue apps. One behaviour I don't like is that any non-existing URL (eg, localhost:8080/nonexistent/file.html
) gets served, with code 200, as if it was the root: localhost:8080
.
This makes debugging XHR requests really messy sometimes.
How can I make it return a 404 code?