Skip to content

Commit

Permalink
Fucking relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelley Bassett committed Feb 7, 2024
1 parent 3de7d21 commit b059d88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const path = require('path')

exports.createPages = ({ actions, graphql }) => {
const { createPage } = actions
const yourTemplate = require.resolve('src/pages/{Mdx.frontmatter__slug}.js')
const yourTemplate = require.resolve(
'./src/pages/{Mdx.frontmatter__slug}.js'
)

return graphql(`
{
Expand Down

0 comments on commit b059d88

Please sign in to comment.