Skip to content

Commit

Permalink
feat(gatsby-source-filesystem): Unify publicURL (#22328)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoltesDigital committed Mar 18, 2020
1 parent f7efc10 commit 756d386
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 @@ -14,7 +14,7 @@ module.exports = ({ type, getNodeAndSavePathDependency, pathPrefix = `` }) => {
description: `Copy file to static directory and return public url to it`,
resolve: (file, fieldArgs, context) => {
const details = getNodeAndSavePathDependency(file.id, context.path)
const fileName = `${file.name}-${file.internal.contentDigest}${details.ext}`
const fileName = `${file.internal.contentDigest}/${details.base}`

const publicPath = path.join(
process.cwd(),
Expand Down

0 comments on commit 756d386

Please sign in to comment.