All Questions
2 questions
0
votes
0
answers
1k
views
nginx is giving 404 error on page reload of my production vue-cli app
I know this is a known problem even explained in vue-cli docs when you use history mode in Vue Router.
If you are using Vue Router in history mode, a simple static file server will fail. For ...
7
votes
3
answers
24k
views
How to handle 404 error request in vuejs SPA with nginx server
I have set up my vue-cli version 3 SPA so that any requests not found in my routes.js file will default to my 404 view as shown in the official documentation:
Inserted near bottom of routes.js file:
...