Closed ViolanteCodes closed 2 years ago
I don't understand what's wrong.
butterCmsPreview == false
=> you want just published articlesbutterCmsPreview == true
=> you want published AND draft articles@orlyohreally correct me if I'm wrong here, but the issue is that preference for published and draft articles be set by the env variable in the initial build? So it's not necessary to filter by status? or is that incorrect?
By setting previewMode true or false in on this line https://github.com/ButterCMS/gatsby-applifting/blob/a631b5619e9017545fe0f9cb6be84ab1cfa29cee/gatsby-config.js#L25 we set which posts/pages we want: all or only published ones. The source plugin filters the data we want, so no need to filter it in the app by status
@orlyohreally Oh, thanks! Gonna fix it.
approved by orly and LGTM, merged in and closing issue