-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tags Auto Removes on Incremental Builds With Netlify #39
Comments
Hmm. I'll see if I can reproduce this. So builds work but incremental builds fail? |
No incremental builds are working fine, however, the tags are not appearing in posts and thereby related post feature(which I added) are no longer visible as well. The tags were working on Gatsby build in my local machine. However sometimes they disappeared and I had to perform In short, tags are auto disappearing. |
Any updates with this bug? |
I still haven't been able to reliably reproduce this issue. Is this still happening? |
I think this problem is caused by Gatsby's cache. If I run the The first time I run Template meaning there are no tag nodes. After you run It looks like Gatsby erases the tag nodes from the cache and they do not get recreated because Gatsby skips As to why the tag nodes are deleted from cache, there are two Gatsby issues that give some hints: gatsbyjs/gatsby#11785 and gatsbyjs/gatsby#12981. I have not fully understood why Gatsby is doing this, but I hope at least you can reproduce the issue of disappearing tags locally. |
@454de6e Thanks. This is helpful. I'm going to try and reproduce this locally. |
As a quick fix you can probably set If you look at the docs for Gatsby's official tagging solution is this: https://www.gatsbyjs.com/docs/adding-tags-and-categories-to-blog-posts/. They avoid creating tag nodes and generate tags pages directly. But I like your idea of generating tag nodes, seems more elegant. Curious to hear what you think is the best solution. |
So, I added incremental builds in Netlify and tags are getting removed after pushing from Github. Because of that, Related posts feature are also not visible.
Is there a fix? Thank you.
The text was updated successfully, but these errors were encountered: