Skip to content

Commit

Permalink
feat(gatsby-plugin-sitemap): allow serialize plugin option to be as…
Browse files Browse the repository at this point in the history
…ync function # (#28207)
  • Loading branch information
oorestisime committed Nov 22, 2020
1 parent 441263e commit 7cf09fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-sitemap/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ exports.onPostBuild = async (
basePath,
resolveSiteUrl
)
const urls = serialize(filteredRecords)
const urls = await serialize(filteredRecords)

if (!rest.sitemapSize || urls.length <= rest.sitemapSize) {
const map = sitemap.createSitemap(rest)
Expand Down

0 comments on commit 7cf09fb

Please sign in to comment.