A snippet with a configuration to source files from a path directory.
// file sourcing in gatsby-config.js
plugins: [
{
resolve: "gatsby-source-filesystem", // a filesystem plugin
options: {
name,
path
}
},
]