Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): fix race condition when using `publicU…
Browse files Browse the repository at this point in the history
…RL` field (#28176) (#28209)

Co-authored-by: cws <cws@home.fritz.box>
(cherry picked from commit 1abf65c)

Co-authored-by: Joost Jansky <styxlab@users.noreply.github.com>
  • Loading branch information
vladar and styxlab committed Nov 23, 2020
1 parent 3d607f1 commit e2d1171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-source-filesystem/src/extend-file-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = ({
)

if (!fs.existsSync(publicPath)) {
fs.copy(
fs.copySync(
details.absolutePath,
publicPath,
{ dereference: true },
Expand Down

0 comments on commit e2d1171

Please sign in to comment.