Skip to content

Commit df71c80

Browse files
Merge pull request #7512 from Nsanjayboruds/fix-lite-build-mode
fix: honor lite build flag in gatsby-node
2 parents 43112ce + af6b26d commit df71c80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gatsby-node.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
261261
}
262262
}
263263
${
264-
isFullSiteBuild
264+
shouldBuildFullSite
265265
? `memberPosts: allMdx(
266266
filter: {
267267
fields: { collection: { eq: "members" } }
@@ -497,7 +497,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
497497
});
498498
});
499499

500-
if (isFullSiteBuild) {
500+
if (shouldBuildFullSite) {
501501
members.forEach((member) => {
502502
envCreatePage({
503503
path: member.fields.slug,
@@ -510,7 +510,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
510510
}
511511

512512
const MemberBio = res.data.memberBio?.nodes || [];
513-
if (isFullSiteBuild) {
513+
if (shouldBuildFullSite) {
514514
MemberBio.forEach((memberbio) => {
515515
envCreatePage({
516516
path: `${memberbio.fields.slug}/bio`,
@@ -542,7 +542,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
542542
});
543543
});
544544

545-
if (isFullSiteBuild) {
545+
if (shouldBuildFullSite) {
546546
integrations.forEach((integration) => {
547547
envCreatePage({
548548
path: `/cloud-native-management/meshery${integration.fields.slug}`,
@@ -575,7 +575,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
575575
});
576576
});
577577

578-
if (!isFullSiteBuild) {
578+
if (!shouldBuildFullSite) {
579579
const litePlaceholderPages = [
580580
{
581581
collection: "members",

0 commit comments

Comments
 (0)