Skip to content

Conversation

@Euruson
Copy link
Contributor

@Euruson Euruson commented Aug 20, 2025

Description

The getAllPagesInSpace() function in notion-utils is valuable for sitemap generation and SSG. However, the current implementation fails to retrieve subpages within collections. This is because it searches for blockIds inside CollectionQueryResult, where the results are typically not present.

Upon investigation, I found that the relevant subpage data primarily resides in CollectionQueryResult.collection_group_results, not in the main CollectionQueryResult itself.

BTW, I fixed #616 to remove annoying warnings during building.

Notion Test Page ID

You can verify this behavior by logging the results during the build process.

@vercel
Copy link

vercel bot commented Aug 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
react-notion-x Error Error Aug 20, 2025 1:43pm
react-notion-x-minimal-demo Ready Ready Preview Aug 20, 2025 1:43pm

@transitive-bullshit transitive-bullshit merged commit 25f44b6 into NotionX:master Sep 18, 2025
2 of 3 checks passed
@transitive-bullshit
Copy link
Member

thanks @Euruson 🙏

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.

date-fns warning at build time

2 participants