GatsbyJS - Blog posts not loading on direct link

╄→尐↘猪︶ㄣ 提交于 2021-02-17 07:05:47

问题


I've been playing with Gatsby for a while now and absolutely love it.

I did come across a little issue that I have no clue how to fix.

I'm rendering blogs posts from my markdown files.

Functionality of the site works fine when you start the site by visiting the homepage / root. https://www.ronaldlangeveld.com/

However, I'm having issues with direct links to my blog posts.

I can access the blog posts by clicking on links from the homepage. However, when trying to access a specific page via direct link it only loads the header and not the post itself. Example https://www.ronaldlangeveld.com/deleting-facebook .

Here's my source code: https://github.com/ronaldlangeveld/gatsbysite

Anyone dealt with this before?

Cheers!


回答1:


All I found was a 404 error before loading the service worker. After numerous attempts, the page is loaded without problems.

Apparently the problem is not GatsbyJS



来源:https://stackoverflow.com/questions/55234020/gatsbyjs-blog-posts-not-loading-on-direct-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!