File tree 1 file changed +2
-2
lines changed
packages/gatsby/src/commands
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ import {
55
55
import { shouldGenerateEngines } from "../utils/engines-helpers"
56
56
import reporter from "gatsby-cli/lib/reporter"
57
57
import type webpack from "webpack"
58
- import { materializePageMode } from "../utils/page-mode"
58
+ import { materializePageMode , getPageMode } from "../utils/page-mode"
59
59
import { validateEngines } from "../utils/validate-engines"
60
60
61
61
module . exports = async function build ( program : IBuildArgs ) : Promise < void > {
@@ -243,7 +243,7 @@ module.exports = async function build(program: IBuildArgs): Promise<void> {
243
243
// Only run queries with mode SSG
244
244
if ( _CFLAGS_ . GATSBY_MAJOR === `4` ) {
245
245
queryIds . pageQueryIds = queryIds . pageQueryIds . filter (
246
- query => query . mode === `SSG`
246
+ query => getPageMode ( query ) === `SSG`
247
247
)
248
248
}
249
249
You can’t perform that action at this time.
0 commit comments