Skip to content

Commit 7cf09fb

Browse files
authored
feat(gatsby-plugin-sitemap): allow serialize plugin option to be async function # (#28207)
1 parent 441263e commit 7cf09fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-sitemap/src/gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exports.onPostBuild = async (
4646
basePath,
4747
resolveSiteUrl
4848
)
49-
const urls = serialize(filteredRecords)
49+
const urls = await serialize(filteredRecords)
5050

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

0 commit comments

Comments
 (0)