Skip to content

Commit

Permalink
fix(gatsby): fix running config when page doesnt contain graphql or g…
Browse files Browse the repository at this point in the history
…etServerData or gatsby-plugin-image (#34275)
  • Loading branch information
pieh authored Dec 16, 2021
1 parent c231ef6 commit d163724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/src/query/file-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ export default class FileParser {
if (
!text.includes(`graphql`) &&
!text.includes(`gatsby-plugin-image`) &&
!text.includes(`getServerData`)
!text.includes(`getServerData`) &&
!text.includes(`config`)
) {
return null
}
Expand Down

0 comments on commit d163724

Please sign in to comment.