We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 809f414 commit 6bc0c1cCopy full SHA for 6bc0c1c
gatsby/onCreateNode.js
@@ -1,8 +1,6 @@
1
// import { replacePath } from './utils'
2
const replacePath = require('./utils')
3
const { createFilePath } = require(`gatsby-source-filesystem`)
4
-// Replacing '/' would result in empty string which is invalid
5
-// const replacePath = path => (path === `/` ? path : path.replace(/\/$/, ``))
6
7
module.exports = exports.onCreateNode = ({ node, getNode, actions }) => {
8
const { createNodeField } = actions
0 commit comments