How to use gatsby-source-contentful's enableTags
with a Tag content model
#38908
Unanswered
bartveneman
asked this question in
Help
Replies: 1 comment
-
It turns out the next
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My website uses Contentful and we've had a
Tag
since it's inception (many years ago). Contentful andgatsby-source-contentful
now also support Contentful's own tags feature when usingenableTags
in the pluginOptions. However, a gatsby build fails because of the conflict between the content model and Contentful's own tags. Apparently this is expected as I found out in the test suite.My question:
How am I supposed to work around this?
I currently see these options:
Tag
content model (create a new model, copy all entries and links, remove old entries, remove old links, remove old model). Quite a few steps and error prone.usenameForId
totrue
and rename myTag
model toWhatever Tag
(and update many occurences of content models that have different names than their ID's)gatsby-source-contentful
to allow Contentful'sTag
to be renamed to something else to avoid conflicts.gatsby-source-contentful@next
and hope that resolves the issues?Does anyone have additional input for this? Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions