Skip to content

Commit

Permalink
A cleaner solution to solve #31
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogdani authored Sep 7, 2023
1 parent d2c801d commit 5764eeb
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 5764eeb

Please sign in to comment.