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

Notion-Config中的分享图标配置(POST_SHARE_SERVICES不生效 #2304

Open
dongzhenye opened this issue Apr 18, 2024 · 2 comments
Open

Notion-Config中的分享图标配置(POST_SHARE_SERVICES不生效 #2304

dongzhenye opened this issue Apr 18, 2024 · 2 comments
Assignees
Labels
help wanted Extra attention is needed resolved

Comments

@dongzhenye
Copy link

描述bug
在Notion配置文件中设置分享图标范围无法生效

期望的正常结果
期望按照配置的范围,更新分享图标列表。

复现步骤
步骤1:在Notion配置文件中增加如下配置并启用:
POST_SHARE_SERVICES = 'link,wechat,weibo,email,facebook,twitter,telegram,whatsapp'
步骤2:在Vercel重新部署并刷新页面,无法看到分享图标发生变化,仍然为默认的列表。

环境

  • 【必填】NotionNext版本 v4.4.3
  • 【必填】主题 Hexo
  • 【必填】部署方案 Vercel
  • 【可选】操作系统 Wndows
  • 【可选】浏览器 Edge

补充说明
我做了初步排查:
1、经验证,配置文件已生效,比如配置的GREETING_WORDS在首页已看到效果
2、经验证,环境变量中的POST_SHARE_SERVICES可以正常生效

故怀疑是Notion-Config对这个配置解析有某种问题,希望作者或朋友们分享思路或协助解决,谢谢!

@dongzhenye dongzhenye added the bug Something isn't working label Apr 18, 2024
@tangly1024
Copy link
Owner

试一下

POST_SHARE_SERVICES = 'link,wechat,weibo,email,facebook,twitter,telegram,whatsapp'

改成 POSTS_SHARE_SERVICES,即POST 后面加个S

@tangly1024 tangly1024 added the help wanted Extra attention is needed label Apr 23, 2024
@dongzhenye
Copy link
Author

@tangly1024 经测试,改成 POSTS_SHARE_SERVICES,即可恢复生效。

@tangly1024 tangly1024 added resolved and removed bug Something isn't working labels Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed resolved
Projects
None yet
Development

No branches or pull requests

2 participants