diff --git a/packages/gatsby-plugin-sitemap/src/internals.js b/packages/gatsby-plugin-sitemap/src/internals.js index 5ae292c2145f9..6744b56301658 100644 --- a/packages/gatsby-plugin-sitemap/src/internals.js +++ b/packages/gatsby-plugin-sitemap/src/internals.js @@ -22,8 +22,10 @@ export const defaultOptions = { } allMarkdownRemark( limit: 1000, - frontmatter: { - draft: { ne: true } + filter: { + frontmatter: { + draft: { ne: true } + } } ) { edges {