When I add a new image to a blog post it's trying to find the image at "blog/1_3azrmh3wkwrmepqn0w9bgw-1-.png"
But it's not there, I have everything setup under static
NetlifyCMS config
backend:
name: git-gateway
branch: master
publish_mode: editorial_workflow
media_folder: '../assets/images'
public_folder: '/assets/images'
collections:
- name: 'blog'
label: 'Blog'
folder: 'packages/common/src/articles'
create: true
slug: 'index'
path: '{{title}}/index'
editor:
preview: true
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Description', name: 'description', widget: 'string' }
- { label: 'Slug', name: 'slug', widget: 'string'}
- { label: 'Tags', name: 'tags', add_to_top: true, minimize_collapsed: true, widget: 'list', field: {name: tag, label: Tag, widget: string} }
- { label: 'Keywords', name: 'keywords', widget: 'list', add_to_top: true, minimize_collapsed: true, field: {name: Keyword, label: keyword, widget: string} }
- label: 'Image'
name: 'image'
widget: 'object'
fields:
- label: ImageUrl
name: ImageUrl
widget: image
- label: ImageAlt
name: ImageAlt
widget: string
- { label: 'Body', name: 'body', widget: 'markdown' }
Gatsby Config
`gatsby-plugin-netlify-cms`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `articles`,
path: `../common/src/articles`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `static/assets/images`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `common-images`,
path: `static/assets/images`
}
},
Not sure what is wrong but it's uploading them to the wrong folder