-
-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Thanks for this excellent repo! I’m currently building my blog using Next.js with the App Router.
I ran into an issue where notion-client
(specifically ky
) fails to fetch data during build time—such as when using getCollectionData()
inside a sitemap route or within a generateStaticParams()
function. The request seems to hang indefinitely without returning data or throwing an error, and the browser page just keeps loading.
As a quick test, I replaced ky
with the native fetch()
API in notion-client
, and the issue was resolved.
I’m not entirely sure why this happens—it might be related to how Next.js handles caching or fetch contexts during static generation. I’m also curious about the choice of ky in the codebase. Are there specific advanced features from ky
that are being used?