however, background configuration support is required for this mode to play well. Because our application is a single-page client application, if the background is not configured correctly, when the user accesses http://oursite.com/user/id directly in the browser, it will return 404, which is not good-looking.
it is well known that history mode that turns on front-end routing (such as vue-router) requires server support. What if I want to deploy the page to CDN (such as Qiniuyun, Aliyun OSS, etc.)? It seems that these CDN can only set up a 404 page at most. I don"t know how to jump back to the index page.
I have only one idea at present, that is to change one page to multiple pages and use prerender-spa-plugin to generate html pages. I wonder if this is feasible?