Skip to content

Commit

Permalink
Merge pull request #948 from newrelic/develop
Browse files Browse the repository at this point in the history
release
  • Loading branch information
sunnyzanchi authored Sep 7, 2023
2 parents 743e88d + 05ecacf commit b35eddf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/gatsby-theme-newrelic/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,12 @@ exports.onCreateNode = async (utils, themeOptions) => {
const slugify = (str) => str.replace('src/content/', '').replace('.mdx', '');

if (MDX_NODE_TYPES.has(node.internal.type)) {
const absolutePath =
node.internal.type === 'MarkdownRemark'
? node.fileAbsolutePath
: node.internal.contentFilePath;
const fileRelativePath = getFileRelativePath(
node.internal.contentFilePath,
absolutePath,
program.directory
);

Expand Down

0 comments on commit b35eddf

Please sign in to comment.