diff --git a/packages/gatsby-source-filesystem/src/extend-file-node.js b/packages/gatsby-source-filesystem/src/extend-file-node.js index 1b430b1bf1a49..b0f09d492f729 100644 --- a/packages/gatsby-source-filesystem/src/extend-file-node.js +++ b/packages/gatsby-source-filesystem/src/extend-file-node.js @@ -30,7 +30,7 @@ module.exports = ({ ) if (!fs.existsSync(publicPath)) { - fs.copy( + fs.copySync( details.absolutePath, publicPath, { dereference: true },