Skip to content

Commit d163724

Browse files
authored
fix(gatsby): fix running config when page doesnt contain graphql or getServerData or gatsby-plugin-image (#34275)
1 parent c231ef6 commit d163724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby/src/query/file-parser.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ export default class FileParser {
503503
if (
504504
!text.includes(`graphql`) &&
505505
!text.includes(`gatsby-plugin-image`) &&
506-
!text.includes(`getServerData`)
506+
!text.includes(`getServerData`) &&
507+
!text.includes(`config`)
507508
) {
508509
return null
509510
}

0 commit comments

Comments
 (0)