Skip to content

Commit

Permalink
fix(gatsby-source-wordpress): fix refresh builds error (#33300)
Browse files Browse the repository at this point in the history
* fix refresh error
  • Loading branch information
TylerBarnes committed Sep 24, 2021
1 parent 2cedfc5 commit 492068b
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -3,6 +3,7 @@ import { processAndValidatePluginOptions } from "./process-and-validate-plugin-o
import { formatLogMessage } from "../utils/format-log-message"
import { IPluginOptions } from "~/models/gatsby-api"
import { GatsbyNodeApiHelpers } from "~/utils/gatsby-types"
import { usingGatsbyV4OrGreater } from "~/utils/gatsby-version"

let hasDisplayedPreviewPresetMessage = false

Expand Down Expand Up @@ -38,7 +39,11 @@ const setGatsbyApiToState = (
if (previewOptimizationPreset) {
helpers.reporter.info(
formatLogMessage(
`\nSince the "Preview Optimization" plugin option preset is enabled\nwe aren't fetching more than ${previewOptimizationPreset.options.type.__all.limit} nodes of each type.\nAdditionally, Gatsby image and static file links in HTML fields are disabled.\nIf you want to change this, please check the Preview docs for this plugin.\nhttps://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/features/preview.md`
`\nSince the "Preview Optimization" plugin option preset is enabled\n${
!usingGatsbyV4OrGreater
? `we aren't fetching more than ${previewOptimizationPreset.options.type.__all.limit} nodes of each type.\nAdditionally, `
: ``
}Gatsby image and static file links in HTML fields are disabled.\nIf you want to change this, please check the Preview docs for this plugin.\nhttps://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/features/preview.md`
)
)
}
Expand Down

0 comments on commit 492068b

Please sign in to comment.