0๐
โ
If you are using the history
mode in your router, you must properly configure your server-side app to serve the Vue application on any request that matches route declared in your Vue router.
This could be as simple as a blanket catch-all route to serve the main view.
Source:stackexchange.com