DEV Community

Discussion on: Creating a Simple Blog using Vue with Markdown

Collapse
 
malgamves profile image
Daniel Madalitso Phiri

I had to setup the _redirects file to let me open up the blog from a main page. For some reason, when I click to open a markdown file using router.push my console tells me the file doesn't exist so I'm guessing Vue did not add it to dist after running npm build. Even though I did add it to the public and src folders to test it

Thread Thread
 
vycoder profile image
yev

Ahh I see. I'm not entirely sure if I understand what happened in your case correctly. But my first guess is that it's really just a consequence of routing in SPA when not using hash mode. I don't particularly like this mode that's why my demo repo was set to history mode due to habit.

More info about this at vue-router docs: Server Configurations