I have linked up DatoCMS to my Vue website using this guide:
On local it works perfectly; if I go to a blog post, it goes to the correct
/post/this-is-a-slug and displays the post. When I refresh the page, it still displays the correct post.
However, when I deploy the website on Netlify with the exact same build command and public dir, I can still access the posts like normal, but when I refresh the post page, it 404’s and I have to go back to the
blog page and then click on the correct post to see it again.
Link: stadsadvocaat.netlify.com -> Blog in menu -> Random post -> Refresh
I have been Googling around, but since the behaviour works as expected on local and not on Netlify, I am not really sure how to solve this.
Someone else have experience with this or know why this behaviour works different on Netlify?