Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bodiless-next): Fixing EmptySitemap error in @sites/--minimal-nex… #2079

Merged
merged 1 commit into from May 13, 2023

Conversation

dewen
Copy link
Collaborator

@dewen dewen commented May 13, 2023

…t-- build

Changes

Test Instructions

Related Issues

@vercel
Copy link

vercel bot commented May 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bodiless-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2023 2:44pm
bodiless-js-starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2023 2:44pm

@@ -68,7 +69,7 @@ const generateSitemapXml = async (options: Partial<SitemapxmlConfig> | undefined
)
)) : pages;

const serializedPages = filteredPages.filter(Boolean).map((page: string) => serialize(
const serializedPages = filteredPages.map((page: string) => serialize(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter might not be necessary since the pages type is string[]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and empty string is a valid page item.

@github-actions
Copy link

Playwright Test Results

196 tests   181 ✔️  41m 4s ⏱️
  14 suites    15 💤
    2 files        0

Results for commit d2a913a.

@dewen dewen merged commit 9e95283 into upgrade/next May 13, 2023
6 of 7 checks passed
@dewen dewen deleted the fix/sitemap-empty-sourceData-issue branch May 13, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants