Skip to content

Commit

Permalink
feat(gatsby-source-filesystem): Unify publicURL (gatsbyjs#22328)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoltesDigital authored Mar 18, 2020
1 parent cf9ece3 commit 4cb4a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 4cb4a17

Please sign in to comment.