-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
🐛 fix: Disable clerk signup when env set #3126
Conversation
@vegetablesB is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for raising your pull request and contributing to our Community |
我建议使用 Feature Flag 而不是环境变量: https://lobehub.com/zh/docs/self-hosting/advanced/feature-flags 禁用的话,配置 |
bc8d67e
to
1668326
Compare
修改了feature flag,请再review一下. 现在使用的是
但是无法禁用使用accounts.xxx.com的注册页面. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
另外 SSO 登录暂时禁止不了对吧?
是的SSO登陆注册禁止不了,也只能在clerk关掉sso了. 目前只是footer 不显示, 和/signup 会转到/login. 用户还是可以使用accounts.xxx.com 来注册. |
Yes, SSO login and registration cannot be disabled, and SSO can only be turned off at clerk. Currently, only the footer is not displayed, and /signup will be redirected to /login. Users can still use accounts.xxx.com to register. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3126 +/- ##
========================================
Coverage 93.96% 93.96%
========================================
Files 388 388
Lines 24149 24155 +6
Branches 1793 2756 +963
========================================
+ Hits 22692 22698 +6
Misses 1457 1457
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
修下测试 |
Fix the test |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, thanks for your contribution!
❤️ Great PR @vegetablesB ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.2.12](v1.2.11...v1.2.12) <sup>Released on **2024-07-07**</sup> #### 🐛 Bug Fixes - **misc**: Fixed mobile web page navigation issue with inbox assistant, support to disable clerk signup with feature flag. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fixed mobile web page navigation issue with inbox assistant, closes [#2693](#2693) ([4476a5e](4476a5e)) * **misc**: Support to disable clerk signup with feature flag, closes [#3126](#3126) ([4ead315](4ead315)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.2.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.45.8](v1.45.7...v1.45.8) <sup>Released on **2024-07-07**</sup> #### 🐛 Bug Fixes - **misc**: Fixed mobile web page navigation issue with inbox assistant, support to disable clerk signup with feature flag. #### 💄 Styles - **misc**: Update deepseek max token. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fixed mobile web page navigation issue with inbox assistant, closes [lobehub#2693](https://github.com/bentwnghk/lobe-chat/issues/2693) ([4476a5e](4476a5e)) * **misc**: Support to disable clerk signup with feature flag, closes [lobehub#3126](https://github.com/bentwnghk/lobe-chat/issues/3126) ([4ead315](4ead315)) #### Styles * **misc**: Update deepseek max token, closes [lobehub#3143](https://github.com/bentwnghk/lobe-chat/issues/3143) ([4a241b9](4a241b9)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* feat: Disable signup when env set * feat: Disable Clerk sign-up based on feature flag * fix: change to client * fix: remove the logic for signup in middleware * chore: revert the space deletion * fix: update the url for login and signup * fix: fix footerAction update logic * test: update test for enableClerkSignUp
### [Version 1.2.12](lobehub/lobe-chat@v1.2.11...v1.2.12) <sup>Released on **2024-07-07**</sup> #### 🐛 Bug Fixes - **misc**: Fixed mobile web page navigation issue with inbox assistant, support to disable clerk signup with feature flag. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fixed mobile web page navigation issue with inbox assistant, closes [lobehub#2693](lobehub#2693) ([4476a5e](lobehub@4476a5e)) * **misc**: Support to disable clerk signup with feature flag, closes [lobehub#3126](lobehub#3126) ([4ead315](lobehub@4ead315)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* feat: Disable signup when env set * feat: Disable Clerk sign-up based on feature flag * fix: change to client * fix: remove the logic for signup in middleware * chore: revert the space deletion * fix: update the url for login and signup * fix: fix footerAction update logic * test: update test for enableClerkSignUp
### [Version 1.2.12](lobehub/lobe-chat@v1.2.11...v1.2.12) <sup>Released on **2024-07-07**</sup> #### 🐛 Bug Fixes - **misc**: Fixed mobile web page navigation issue with inbox assistant, support to disable clerk signup with feature flag. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fixed mobile web page navigation issue with inbox assistant, closes [lobehub#2693](lobehub#2693) ([4476a5e](lobehub@4476a5e)) * **misc**: Support to disable clerk signup with feature flag, closes [lobehub#3126](lobehub#3126) ([4ead315](lobehub@4ead315)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Update middle ware and page to redirect, update layout to disable the footer
环境变量是
NEXT_PUBLIC_DISABLE_CLERK_SIGN_UP
📝 补充信息 | Additional Information
相关issue: