Skip to content

Commit

Permalink
fix: added the split function back
Browse files Browse the repository at this point in the history
  • Loading branch information
aswathy-deriv committed Jan 17, 2024
1 parent cfc8337 commit 41a115b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ exports.onCreatePage = ({ page, actions }) => {
const { deletePage } = actions
const isProduction = process.env.GATSBY_ENV === 'production'
const pagesToBuild = process.env.GATSBY_BUILD_PAGES
const allowed_pages = ['', pagesToBuild?.split(',')]
const allowed_pages = ['', pagesToBuild.split(',')]

const pages = allowed_pages.reduce((result, Item) => {
if (Array.isArray(Item)) {
// Flatten the nested array and add the '/' prefix
Expand Down

0 comments on commit 41a115b

Please sign in to comment.