I'm going to connect multiple instances of dato and I am therefore in the process of adding the instancePrefix to an existing source.
I stumbled across an error that "DatoCmsAsset" does not exists which makes sense after adding the prefix as it should have changed to DatoCmsMyPrefixAsset.
After digging a bit, I found an hard coded occurrence of the type here https://github.com/datocms/gatsby-source-datocms/blob/master/src/hooks/sourceNodes/createTypes/fieldTypes/DatoCmsSeoField.js#L11 and by replacing it with context.generateType('Asset') it solves the issue.
In addition there are also hard coded ids here and here which could no longer resolve properly after fixing the error above. I've seen a itemNodeId helper here which might be the way to resolve this as well, but It need further investigation I am unable to do right now.
I'm going to connect multiple instances of dato and I am therefore in the process of adding the
instancePrefix
to an existing source. I stumbled across an error that"DatoCmsAsset" does not exists
which makes sense after adding the prefix as it should have changed toDatoCmsMyPrefixAsset
. After digging a bit, I found an hard coded occurrence of the type here https://github.com/datocms/gatsby-source-datocms/blob/master/src/hooks/sourceNodes/createTypes/fieldTypes/DatoCmsSeoField.js#L11 and by replacing it withcontext.generateType('Asset')
it solves the issue.In addition there are also hard coded ids here and here which could no longer resolve properly after fixing the error above. I've seen a
itemNodeId
helper here which might be the way to resolve this as well, but It need further investigation I am unable to do right now.