Closed noxify closed 3 years ago
As a fix in the meantime, you can use onCreateNode
to add that missing protocol:
gridsome.server.js
module.exports = api => {
api.onCreateNode(node => {
if (node.internal.typeName === 'ContentfulAsset') {
node.file.url = `https:${node.file.url}`
}
})
}
@DouglasKGlover - this should fix your problem :)
@noxify Thanks a lot for handling this!
If something isn't working, feel free to create an issue here :)
While trying to download an image from a contentful source, the download fails and the target field has the same value as the source field.
Rootcause: The image url inside the contentful aaset collection is
//
. The image download plugin requireshttps://
orhttp://
.Solution: Check the download url and add the missing protocol if needed.