Skip to content

Commit 27293d6

Browse files
committed
Removed unhelpful build script warning
1 parent 4aaaa50 commit 27293d6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: gatsby/onCreateNode.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@ module.exports = exports.onCreateNode = ({node, boundActionCreators, getNode}) =
4545
}
4646

4747
if (!slug) {
48+
// This will likely only happen for the partials in /content/home.
4849
slug = `/${relativePath.replace('.md', '.html')}`;
49-
50-
// This should only happen for the partials in /content/home,
51-
// But let's log it in case it happens for other files also.
52-
console.warn(
53-
`Warning: No slug found for "${relativePath}". Falling back to default "${slug}".`,
54-
);
5550
}
5651

5752
// Used to generate URL to view this content.

0 commit comments

Comments
 (0)