Skip to content

Commit

Permalink
fix: get notion page filter by user
Browse files Browse the repository at this point in the history
  • Loading branch information
rowthan committed Jul 20, 2024
1 parent cbe4615 commit f9625e5
Show file tree
Hide file tree
Showing 4 changed files with 9,976 additions and 10 deletions.
9,965 changes: 9,964 additions & 1 deletion apps/web/.cache/author.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/docs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":"e1d2276a-e874-47fe-98e3-ddd3f02ce69e","title":"推荐的一些 npm 包"},{"id":"730666c9-61b2-4b46-b2b9-7022b6c863c4","title":"[wip]lerna 使用记录"},{"id":"0717ea3b-dfd2-4733-8f31-cae5c12d42c5","title":"新手篇-初上手"},{"id":"e4a98b49-5167-4373-9196-d46b523f7c0c","title":"新手篇-什么是浏览器插件"},{"id":"d3defbeb-d494-4104-b4b6-9d10a9fe449d","title":"高级篇 content script的最佳运行时机"},{"id":"2b16d242-29b0-4f37-a9f9-f3a3bb7c880b","title":"高级篇 安装、"},{"id":"8fee6c1e-bab5-426c-87b4-fcc09e155066","title":"中级篇 有用但你不知道的 API"},{"id":"afd390a0-9f9d-4155-9b97-e5bb535224d6","title":"【wip】Chrome VS Firefox 浏览器插件差异"},{"id":"8013dcda-1e18-402f-8375-0af46f8d7fce","title":"辞不了的职","path":null},{"id":"a6040c20-d6bf-459e-b31b-bb5d93972752","title":"i到底也没什么问题","path":null},{"id":"0f34a3a1-4aac-4b67-9966-09bdfa7cab3e","title":"我们也生活在楚门的世界","path":null},{"id":"f44d1bfd-45d6-44ce-9b26-4067e8446d5b","title":"【wip】浏览器插件开发指南","path":null},{"id":"bdc8dfa9-d384-4062-b1ad-34438bfc24a3","title":"工作内推","path":"/jobs"},{"id":"dea4f9dd-2de0-4ae3-bf41-e7b01cbbf39a","title":"关于隐私保护想说的事","path":"/about/privacy"},{"id":"d7577e2c-74e0-4a05-ae97-8529efb76d08","title":"离职前你要做的事情","path":"/lizhi-todo-list"},{"id":"96d0f3f4-fc3d-4b82-b38b-41d94dd8b339","title":"在 Firefox 中设置快捷键"},{"id":"bc6bcef8-35b9-432d-8d63-78d68d1e226f","title":"[wip] 阿里云存储配置指南"},{"id":"6a735312-4e9d-4d49-a6a2-bed07acff3df","title":"把Notion当作 PAGENOTE 的数据库,存储数据[已废弃⚠️]"},{"id":"0764216a-e635-4351-8314-0adafdc3ecf4","title":"PAGENOTE 的安装包【已废弃】"},{"id":"f9c55128-801c-402b-817d-a19f002884ec","title":"如何启用、禁用一页一记"},{"id":"9c5e70d5-6aed-4e30-aeae-7c65fad15658","title":"剪切板的使用方式"},{"id":"7e493285-94b4-4142-8c5a-087206c989e1","title":"解放 control C"},{"id":"dca42589-5d0a-466c-9014-b0d173d3308e","title":"关于数据存储【已废弃】"},{"id":"fc4ce15b-f0ef-4e5a-b34e-1836719219f5","title":"[wip] tabGroup 标签组的使用介绍"},{"id":"b3d6cf07-fb8a-4c8c-91d1-d2c48169eed5","title":"PAGENOTE 的快捷键"},{"id":"9ba20cf8-0ca1-4551-a93e-ca35f1064077","title":"站点地图"},{"id":"4a42826e-c4f2-47e8-a46e-f3dac5c342b6","title":"写给大学生看的五险一金介绍","path":"/wuxianyijin"},{"id":"a859b11f-df8b-412a-bf68-88e52329b6b1","title":"我的开发白皮书","path":"/guide-book"},{"id":"8a7f024b-6c61-4bc1-b8e3-6124a1cb0ffc","title":"令人抓狂的开发瞬间","path":null},{"id":"1aa546f1-e09a-4a0e-8524-6cd2d26a27de","title":"PAGENOTE Actions 介绍"},{"id":"58a605be-aaf3-481a-af1a-ebb0a632b3b3","title":"工作居住证又该续期了","path":null},{"id":"16c2f532-fdff-409e-8545-b36e8dc4aa41","title":"发现问题比解决问题更重要","path":null},{"id":"fbf262c4-8672-4099-95ff-18eb04b7d142","title":"保持谦逊","path":"/stay-stupid"},{"id":"6ac0abf5-4dc9-43c2-972b-38df9045e25f","title":"别踩生活的那些坑","path":"/some-tips"},{"id":"d8460d8f-a231-4b64-9003-5923c201af40","title":"新闻不该娱乐化","path":"/xinwen-bugai-yulehua"},{"id":"7eb14d8b-4a46-406f-baad-b37759d1c555","title":"记一次服务器流量激增事件","path":"/frontend/mv3-extension"},{"id":"3c8877e7-d890-4367-b6bc-50dad87d9de5","title":"看了一场演唱会","path":"/kanle-yichang-yanchanghui"},{"id":"b0571a3f-f114-49be-b697-5843e40efcb5","title":"【wip】回不去的农村","path":"/huibuqu-de-nongcun"},{"id":"cfd9af87-0210-4934-9e04-20bc708c4206","title":"小而美的网页标记插件"},{"id":"4eae89de-d637-439d-9b4f-93b95cddd9f3","title":null,"path":"/donation"},{"id":"9034e547-f473-49b7-9b1d-76cca86c132e","title":null,"path":"/download"},{"id":"cadee8fc-01e2-4a6a-bae2-ae2f9e5f419a","title":null},{"id":"73ec8a5a-ec87-4e6c-a028-6f406e64d425","title":null,"path":"/release/0.29"},{"id":"ddf8a5e2-0d88-408e-afb6-4cc5c72fcc7f","title":null,"path":"/expired"},{"id":"ddbe1308-2127-4722-8800-57bb81af5e12","title":null,"path":"/docs/cloud-space"},{"id":"c8fb8ebe-306a-4493-9e90-7dd64ade734c","title":null,"path":"/docs/xxx"},{"id":"fca779b7-95c0-4b70-88aa-eabc345a7af8","title":null,"path":"/question"},{"id":"0dc49d68-af6d-48c0-a61b-3ce189a898d9","title":null,"path":"/release/0.30"},{"id":"b29f947e-1df6-4468-982e-e36e8ad1009c","title":null,"path":"/pro-plan"},{"id":"e5106ae4-01a0-4d42-a976-33663d7035a1","title":null,"path":"/author"},{"id":"926d543b-fad8-4818-952f-15bfc096c038","title":null,"path":"/uninstall"},{"id":"1692abfe-6bd3-485f-a195-d13fb4659301","title":null,"path":"/privacy"},{"id":"c62e7bf5-2a7d-43c6-818a-bf020cf4e06e","title":null,"path":"/release/0.28"},{"id":"98f1167c-3e07-4ee8-8971-cf33ce8c4df7","title":null,"path":"/versions"},{"id":"2a43527b-16c0-4ec2-aa26-90dd4aa92293","title":null,"path":"/developer/project"},{"id":"a661bcc2-9ff3-44d7-83d6-ce6fb2365d35","title":null,"path":"/welcome"},{"id":"a1f8ff92-6077-4538-b35f-aa65c4e87eeb","title":null,"path":"/status"},{"id":"83a1b077-92bd-41fc-8b3c-c1c8c3c131cc","title":null,"path":"/360"},{"id":"c5865cde-2ef5-4f36-9c0f-e2dce97f6a1c","title":null,"path":"/release"},{"id":"ce1300d2-471b-4391-946b-d1a7c281758f","title":null,"path":null},{"id":"0983443a-51b4-49dd-a7d0-ab98d5d5e9db","title":null,"path":"/no-cloud"},{"id":"fda34ddd-7dd3-4a5c-9918-8cdcadaa6d12","title":null,"path":"/rate"},{"id":"449f7171-8669-4087-a4a4-cff5852cf98d","title":null,"path":"/skills"},{"id":"ee1c53bb-102e-4c5b-8896-85160f7e3735","title":null},{"id":"2a762725-c462-4ac5-bc79-e2acfd68a24b","title":null,"path":null},{"id":"242a496b-2c57-486f-bfa5-3936a13e16f4","title":null,"path":"/bind-vip"},{"id":"c9891d98-9fe7-4cb6-9762-d2c64b69ef9b","title":null,"path":null},{"id":"26ebb7af-8dee-4517-8d68-4fd4f5eaa5ef","title":null},{"id":"42d2c3c3-3f48-4770-83ca-b8165f1e6d63","title":null},{"id":"e5d356bf-66ce-48c0-9f45-38c69dff5ccc","title":null},{"id":"8e1b5b87-71e0-42c1-ac34-c259319557d2","title":null},{"id":"f304934c-4969-4297-864a-7c19cf3849b5","title":null,"path":"/release/0.27.5"},{"id":"3d2baccd-0973-44d8-8b43-4f532caeff4f","title":null,"path":"/blog/email-css"},{"id":"cf23ccbd-6b9d-4f0b-857f-561cbb7cddf0","title":null,"path":null},{"id":"aaab185f-5ede-4bd0-8c5a-43c2ac478a37","title":null,"path":null},{"id":"915ba52d-75e3-4e3d-8918-220c82b0ee3d","title":null,"path":null},{"id":"aee3c465-c2a0-470b-8808-34c456f920f5","title":null,"path":null},{"id":"eced226c-6be2-4782-bfe6-bf62b0499205","title":null,"path":null},{"id":"0a4bfc38-348b-4eeb-b866-216534f9152c","title":null,"path":null},{"id":"7fbe3acf-efa1-489f-84e0-6298c8bd8ad3","title":null,"path":null},{"id":"6748f1bb-0fe3-426f-a4e3-1b68cb5fbbdb","title":null,"path":null},{"id":"e0359895-2f71-4772-a248-d23a0b4bd74b","title":null,"path":null},{"id":"4c8edcb8-bbc7-4234-ba0b-421b3a189f36","title":null,"path":null},{"id":"60bebcd4-b38d-4cc9-8bcf-6a18a02cac40","title":null,"path":null},{"id":"694d721c-fe9f-47e8-b964-c23a22ef3ab9","title":null,"path":null},{"id":"e9e32822-beef-46ff-a5db-350e963a899e","title":null,"path":null},{"id":"5588334e-8dd0-4e16-8d6f-5350ca665a02","title":null,"path":null},{"id":"b28b892d-d780-4579-a9b6-13f3b046915b","title":null,"path":null},{"id":"28388002-352a-40da-aea6-39305afd85a6","title":null,"path":null},{"id":"284746d2-458a-4bb8-9aac-28372c617b99","title":null,"path":null},{"id":"12b82896-c51c-4863-b372-035146dc2f29","title":null,"path":null},{"id":"ab7af3cd-14e8-43bb-a246-2deb11423238","title":null,"path":null},{"id":"06863105-0f72-493a-94c3-76711982d466","title":null,"path":null},{"id":"51f37691-0ace-43e4-9c49-7c8863cc4993","title":null,"path":null},{"id":"d7861aa6-5588-4269-98f6-a17b1cfb95c8","title":null,"path":null},{"id":"753102c2-0dba-47f8-9469-67da548cf143","title":null,"path":null},{"id":"e3b644a0-518f-4810-bd98-4b8b2617bdd3","title":null,"path":null},{"id":"a5e1e936-d620-47c4-bf1a-a417125921c6","title":null,"path":null},{"id":"6bbcfbb4-7dfc-4fee-b469-253798b9a651","title":null},{"id":"c291c519-0790-4d29-840d-af76319fc17d","title":null,"path":null}]
[{"id":"e1d2276a-e874-47fe-98e3-ddd3f02ce69e","title":"推荐的一些 npm 包"},{"id":"730666c9-61b2-4b46-b2b9-7022b6c863c4","title":"[wip]lerna 使用记录"},{"id":"0717ea3b-dfd2-4733-8f31-cae5c12d42c5","title":"新手篇-初上手"},{"id":"e4a98b49-5167-4373-9196-d46b523f7c0c","title":"新手篇-什么是浏览器插件"},{"id":"d3defbeb-d494-4104-b4b6-9d10a9fe449d","title":"高级篇 content script的最佳运行时机"},{"id":"2b16d242-29b0-4f37-a9f9-f3a3bb7c880b","title":"高级篇 安装、"},{"id":"8fee6c1e-bab5-426c-87b4-fcc09e155066","title":"中级篇 有用但你不知道的 API"},{"id":"afd390a0-9f9d-4155-9b97-e5bb535224d6","title":"【wip】Chrome VS Firefox 浏览器插件差异"},{"id":"8013dcda-1e18-402f-8375-0af46f8d7fce","title":"辞不了的职","path":null},{"id":"a6040c20-d6bf-459e-b31b-bb5d93972752","title":"i到底也没什么问题","path":null},{"id":"0f34a3a1-4aac-4b67-9966-09bdfa7cab3e","title":"我们也生活在楚门的世界","path":null},{"id":"f44d1bfd-45d6-44ce-9b26-4067e8446d5b","title":"【wip】浏览器插件开发指南","path":null},{"id":"bdc8dfa9-d384-4062-b1ad-34438bfc24a3","title":"工作内推","path":"/jobs"},{"id":"dea4f9dd-2de0-4ae3-bf41-e7b01cbbf39a","title":"关于隐私保护想说的事","path":"/about/privacy"},{"id":"d7577e2c-74e0-4a05-ae97-8529efb76d08","title":"离职前你要做的事情","path":"/lizhi-todo-list"},{"id":"96d0f3f4-fc3d-4b82-b38b-41d94dd8b339","title":"在 Firefox 中设置快捷键"},{"id":"bc6bcef8-35b9-432d-8d63-78d68d1e226f","title":"[wip] 阿里云存储配置指南"},{"id":"6a735312-4e9d-4d49-a6a2-bed07acff3df","title":"把Notion当作 PAGENOTE 的数据库,存储数据[已废弃⚠️]"},{"id":"0764216a-e635-4351-8314-0adafdc3ecf4","title":"PAGENOTE 的安装包【已废弃】"},{"id":"f9c55128-801c-402b-817d-a19f002884ec","title":"如何启用、禁用一页一记"},{"id":"9c5e70d5-6aed-4e30-aeae-7c65fad15658","title":"剪切板的使用方式"},{"id":"7e493285-94b4-4142-8c5a-087206c989e1","title":"解放 control C"},{"id":"dca42589-5d0a-466c-9014-b0d173d3308e","title":"关于数据存储【已废弃】"},{"id":"fc4ce15b-f0ef-4e5a-b34e-1836719219f5","title":"[wip] tabGroup 标签组的使用介绍"},{"id":"b3d6cf07-fb8a-4c8c-91d1-d2c48169eed5","title":"PAGENOTE 的快捷键"},{"id":"9ba20cf8-0ca1-4551-a93e-ca35f1064077","title":"站点地图"},{"id":"a859b11f-df8b-412a-bf68-88e52329b6b1","title":"我的开发白皮书","path":"/guide-book"},{"id":"8a7f024b-6c61-4bc1-b8e3-6124a1cb0ffc","title":"令人抓狂的开发瞬间","path":null},{"id":"1aa546f1-e09a-4a0e-8524-6cd2d26a27de","title":"PAGENOTE Actions 介绍"},{"id":"58a605be-aaf3-481a-af1a-ebb0a632b3b3","title":"工作居住证又该续期了","path":null},{"id":"16c2f532-fdff-409e-8545-b36e8dc4aa41","title":"发现问题比解决问题更重要","path":null},{"id":"fbf262c4-8672-4099-95ff-18eb04b7d142","title":"保持谦逊","path":"/stay-stupid"},{"id":"6ac0abf5-4dc9-43c2-972b-38df9045e25f","title":"别踩生活的那些坑","path":"/some-tips"},{"id":"d8460d8f-a231-4b64-9003-5923c201af40","title":"新闻不该娱乐化","path":"/xinwen-bugai-yulehua"},{"id":"7eb14d8b-4a46-406f-baad-b37759d1c555","title":"记一次服务器流量激增事件","path":"/frontend/mv3-extension"},{"id":"3c8877e7-d890-4367-b6bc-50dad87d9de5","title":"看了一场演唱会","path":"/kanle-yichang-yanchanghui"},{"id":"ddbe1308-2127-4722-8800-57bb81af5e12","title":"关于云备份"},{"id":"b0571a3f-f114-49be-b697-5843e40efcb5","title":"回不去的农村","path":"/huibuqu-de-nongcun"},{"id":"4a42826e-c4f2-47e8-a46e-f3dac5c342b6","title":"写给大学生看的五险一金介绍","path":"/wuxianyijin"},{"id":"6b98df9b-3507-4517-9643-519a45b7074f","title":"【长期更新】尤克里里学习记录","path":null},{"id":"cfd9af87-0210-4934-9e04-20bc708c4206","title":"小而美的网页标记插件"},{"id":"73ec8a5a-ec87-4e6c-a028-6f406e64d425","title":null,"path":"/release/0.29"},{"id":"9034e547-f473-49b7-9b1d-76cca86c132e","title":null,"path":"/download"},{"id":"97d2bd1d-2728-4a9d-a670-fdfb9b25d0fe","title":null,"path":"/pro-plan/tips"},{"id":"98f1167c-3e07-4ee8-8971-cf33ce8c4df7","title":null,"path":"/versions"},{"id":"b29f947e-1df6-4468-982e-e36e8ad1009c","title":null,"path":"/pro-plan"},{"id":"e5106ae4-01a0-4d42-a976-33663d7035a1","title":null,"path":"/author"},{"id":"42666c38-1bcb-4803-85ae-f8ca580678ab","title":null,"path":null},{"id":"ddf8a5e2-0d88-408e-afb6-4cc5c72fcc7f","title":null,"path":"/expired"},{"id":"4eae89de-d637-439d-9b4f-93b95cddd9f3","title":null,"path":"/donation"},{"id":"fca779b7-95c0-4b70-88aa-eabc345a7af8","title":null,"path":"/question"},{"id":"5e2435ac-68c0-456d-a4a0-1f8a2a1c6050","title":null,"path":"/docs/cloud"},{"id":"51f37691-0ace-43e4-9c49-7c8863cc4993","title":null,"path":null},{"id":"cadee8fc-01e2-4a6a-bae2-ae2f9e5f419a","title":null},{"id":"c8fb8ebe-306a-4493-9e90-7dd64ade734c","title":null,"path":"/docs/xxx"},{"id":"0dc49d68-af6d-48c0-a61b-3ce189a898d9","title":null,"path":"/release/0.30"},{"id":"926d543b-fad8-4818-952f-15bfc096c038","title":null,"path":"/uninstall"},{"id":"1692abfe-6bd3-485f-a195-d13fb4659301","title":null,"path":"/privacy"},{"id":"c62e7bf5-2a7d-43c6-818a-bf020cf4e06e","title":null,"path":"/release/0.28"},{"id":"2a43527b-16c0-4ec2-aa26-90dd4aa92293","title":null,"path":"/developer/project"},{"id":"a661bcc2-9ff3-44d7-83d6-ce6fb2365d35","title":null,"path":"/welcome"},{"id":"a1f8ff92-6077-4538-b35f-aa65c4e87eeb","title":null,"path":"/status"},{"id":"83a1b077-92bd-41fc-8b3c-c1c8c3c131cc","title":null,"path":"/360"},{"id":"c5865cde-2ef5-4f36-9c0f-e2dce97f6a1c","title":null,"path":"/release"},{"id":"ce1300d2-471b-4391-946b-d1a7c281758f","title":null,"path":null},{"id":"0983443a-51b4-49dd-a7d0-ab98d5d5e9db","title":null,"path":"/no-cloud"},{"id":"fda34ddd-7dd3-4a5c-9918-8cdcadaa6d12","title":null,"path":"/rate"},{"id":"449f7171-8669-4087-a4a4-cff5852cf98d","title":null,"path":"/skills"},{"id":"ee1c53bb-102e-4c5b-8896-85160f7e3735","title":null},{"id":"2a762725-c462-4ac5-bc79-e2acfd68a24b","title":null,"path":null},{"id":"242a496b-2c57-486f-bfa5-3936a13e16f4","title":null,"path":"/bind-vip"},{"id":"c9891d98-9fe7-4cb6-9762-d2c64b69ef9b","title":null,"path":null},{"id":"26ebb7af-8dee-4517-8d68-4fd4f5eaa5ef","title":null},{"id":"42d2c3c3-3f48-4770-83ca-b8165f1e6d63","title":null},{"id":"e5d356bf-66ce-48c0-9f45-38c69dff5ccc","title":null},{"id":"8e1b5b87-71e0-42c1-ac34-c259319557d2","title":null},{"id":"f304934c-4969-4297-864a-7c19cf3849b5","title":null,"path":"/release/0.27.5"},{"id":"3d2baccd-0973-44d8-8b43-4f532caeff4f","title":null,"path":"/blog/email-css"},{"id":"cf23ccbd-6b9d-4f0b-857f-561cbb7cddf0","title":null,"path":null},{"id":"aaab185f-5ede-4bd0-8c5a-43c2ac478a37","title":null,"path":null},{"id":"915ba52d-75e3-4e3d-8918-220c82b0ee3d","title":null,"path":null},{"id":"aee3c465-c2a0-470b-8808-34c456f920f5","title":null,"path":null},{"id":"eced226c-6be2-4782-bfe6-bf62b0499205","title":null,"path":null},{"id":"0a4bfc38-348b-4eeb-b866-216534f9152c","title":null,"path":null},{"id":"7fbe3acf-efa1-489f-84e0-6298c8bd8ad3","title":null,"path":null},{"id":"6748f1bb-0fe3-426f-a4e3-1b68cb5fbbdb","title":null,"path":null},{"id":"e0359895-2f71-4772-a248-d23a0b4bd74b","title":null,"path":null},{"id":"4c8edcb8-bbc7-4234-ba0b-421b3a189f36","title":null,"path":null},{"id":"60bebcd4-b38d-4cc9-8bcf-6a18a02cac40","title":null,"path":null},{"id":"694d721c-fe9f-47e8-b964-c23a22ef3ab9","title":null,"path":null},{"id":"e9e32822-beef-46ff-a5db-350e963a899e","title":null,"path":null},{"id":"5588334e-8dd0-4e16-8d6f-5350ca665a02","title":null,"path":null},{"id":"b28b892d-d780-4579-a9b6-13f3b046915b","title":null,"path":null},{"id":"28388002-352a-40da-aea6-39305afd85a6","title":null,"path":null},{"id":"284746d2-458a-4bb8-9aac-28372c617b99","title":null,"path":null},{"id":"12b82896-c51c-4863-b372-035146dc2f29","title":null,"path":null},{"id":"ab7af3cd-14e8-43bb-a246-2deb11423238","title":null,"path":null},{"id":"06863105-0f72-493a-94c3-76711982d466","title":null,"path":null},{"id":"d7861aa6-5588-4269-98f6-a17b1cfb95c8","title":null,"path":null},{"id":"753102c2-0dba-47f8-9469-67da548cf143","title":null,"path":null}]
10 changes: 6 additions & 4 deletions apps/web/pages/api/doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
let recordMap
try {
recordMap = await getUnOfficialNotion().getPage(notionId)
if(!recordMap.notion_user[WRITER_ID]){
console.log(recordMap.notion_user)
recordMap = null;
}
console.log(recordMap,'public get notion page',recordMap)
// 这里会隐藏作者信息,无法验证
// if(!recordMap.notion_user[WRITER_ID]){
// console.log(recordMap.notion_user)
// recordMap = null;
// }
} catch (e) {
console.error(e,'fetch recordMap error')
return res.status(200).json(null)
Expand Down
9 changes: 5 additions & 4 deletions apps/web/service/server/doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ export async function getNotionDocDetail(id: string, notFound: boolean = true) {
if(!result){
try{
result = await(await fetch(`${WEB_HOST}/api/doc?id=${id}`)).json();
console.log(id,'get from server ',WEB_HOST, result)
}catch (e) {
console.error('fetch doc detail error')
console.error(id,'fetch doc detail error')
}
}
if(!result){
console.log('fallback get doc from local .cache')
const forceEnableCache = !isDev && (!result || !result.recordMap);
if(forceEnableCache){
result = getCacheContent(id, true);
console.log(id,'fallback get doc from local .cache')
}

if (result?.recordMap) {
return {
props: result,
Expand Down

0 comments on commit f9625e5

Please sign in to comment.