mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
f73dddd72aeea27eebcbc6661684481fff0bf455
修复思路是在加载所有文章时,会首先一次性加载数据库中所有block,此时因为上限1000会发生溢出。之后会读取所有page的IDs,然后逐个获取page对应的block。此时如果发现ID查找不到(说明发生了溢出),则再调用API去逐一获取这些溢出了的page。可能这不是最优解。 修改的代码包括: 1. getDataBaseInfoByNotionAPI中添加上述判断逻辑。 2. 修改getPageProperties函数签名,直接传入block对应的value,而不是block数组。
NotionNext
中文文档 | README in English
A static blog system built with NextJS and Notion API, deployed on Vercel. Designed for Notion and all creators.
Preview
Live Demo:https://preview.tangly1024.com/ ,Project supports switching between multiple themes. Can't find a theme you like? How about contributing one?~
| Next | Medium | Hexo | Fukasawa |
|---|---|---|---|
NEXT |
MEDIUM |
HEXO |
FUKASAWA |
Get Start!
It only takes a few minutes to set up your personal site:
Acknowledgements
Special thanks to Craig Hart for initiating the Nobelium project.
Craig Hart |
Contributors
Technologies Used
- Technical Framework: Next.js
- Styles: Tailwind CSS
- Rendering Tool: React-notion-x
- COMMENT: Twikoo, Giscus, Gitalk, Cusdis, Utterances
- ICON: Fontawesome
License
The MIT License.
Languages
JavaScript
96.4%
CSS
3%
TypeScript
0.4%
Python
0.1%
HTML
0.1%



