Skip to content

Commit

Permalink
Solves #31 (#32)
Browse files Browse the repository at this point in the history
* Solves #31

* A cleaner solution to solve #31
  • Loading branch information
jbogdani committed Sep 19, 2023
1 parent bfd4f40 commit 742a5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exports.sourceNodes = async (gatsbyOptions, pluginOptions) => {
const nameParts = file.filename_download.split('.');
const ext = nameParts.length > 1 ? `.${nameParts.pop()}` : '';
const name = nameParts.join('.');
const fileUrl = `${plugin.url}assets/${file.id}`;
const fileUrl = `${plugin.url}${plugin.url.endsWith('/') ? '' : '/'}assets/${file.id}`;
const fileNode = await createRemoteFileNode({
url: fileUrl,
parentNodeId: file.id,
Expand Down

0 comments on commit 742a5fb

Please sign in to comment.