I have a need to create a server-side-rendered Vue.js app due to SEO and a large amount of dynamic content.
I have managed to get quite a bit done by following templates found online and some dynamic pages are working perfectly.
However, I am having a problem when using sub-level routes in vue-router as below.
Again, this is only a problem when I use second-level routes and refresh the page, causing all assets to be rebuilt and delivered.
In the client-side console there is a 404 error because /blog/:category/:post/public/app.js isn’t found. In fact, there isn’t even an app.js located in the sources tab.
Any idea how I can implement sub-level routes in vue SSR or amend my server code to help this work?
I can send pretty much all of the code I have if necessary, but my hope would be that I am just missing something simple.