Skip to content

Commit 6bc0c1c

Browse files
author
cvluca
committed
update
1 parent 809f414 commit 6bc0c1c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gatsby/onCreateNode.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// import { replacePath } from './utils'
22
const replacePath = require('./utils')
33
const { createFilePath } = require(`gatsby-source-filesystem`)
4-
// Replacing '/' would result in empty string which is invalid
5-
// const replacePath = path => (path === `/` ? path : path.replace(/\/$/, ``))
64

75
module.exports = exports.onCreateNode = ({ node, getNode, actions }) => {
86
const { createNodeField } = actions

0 commit comments

Comments
 (0)