Skip to content

Commit 756d386

Browse files
feat(gatsby-source-filesystem): Unify publicURL (#22328)
1 parent f7efc10 commit 756d386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-source-filesystem/src/extend-file-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = ({ type, getNodeAndSavePathDependency, pathPrefix = `` }) => {
1414
description: `Copy file to static directory and return public url to it`,
1515
resolve: (file, fieldArgs, context) => {
1616
const details = getNodeAndSavePathDependency(file.id, context.path)
17-
const fileName = `${file.name}-${file.internal.contentDigest}${details.ext}`
17+
const fileName = `${file.internal.contentDigest}/${details.base}`
1818

1919
const publicPath = path.join(
2020
process.cwd(),

0 commit comments

Comments
 (0)