@lobehub/lobehub 2.0.0-next.125 → 2.0.0-next.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.126](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.125...v2.0.0-next.126)
6
+
7
+ <sup>Released on **2025-11-27**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Align docker auth defaults and better-auth docs.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Align docker auth defaults and better-auth docs, closes [#10457](https://github.com/lobehub/lobe-chat/issues/10457) ([1375314](https://github.com/lobehub/lobe-chat/commit/1375314))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 2.0.0-next.125](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.124...v2.0.0-next.125)
6
31
 
7
32
  <sup>Released on **2025-11-27**</sup>
package/Dockerfile CHANGED
@@ -38,6 +38,7 @@ FROM base AS builder
38
38
  ARG USE_CN_MIRROR
39
39
  ARG NEXT_PUBLIC_BASE_PATH
40
40
  ARG NEXT_PUBLIC_ENABLE_BETTER_AUTH
41
+ ARG NEXT_PUBLIC_ENABLE_NEXT_AUTH
41
42
  ARG NEXT_PUBLIC_ENABLE_CLERK_AUTH
42
43
  ARG NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
43
44
  ARG NEXT_PUBLIC_SENTRY_DSN
@@ -52,7 +53,8 @@ ARG FEATURE_FLAGS
52
53
  ENV NEXT_PUBLIC_BASE_PATH="${NEXT_PUBLIC_BASE_PATH}" \
53
54
  FEATURE_FLAGS="${FEATURE_FLAGS}"
54
55
 
55
- ENV NEXT_PUBLIC_ENABLE_BETTER_AUTH="${NEXT_PUBLIC_ENABLE_BETTER_AUTH:-1}" \
56
+ ENV NEXT_PUBLIC_ENABLE_BETTER_AUTH="${NEXT_PUBLIC_ENABLE_BETTER_AUTH:-0}" \
57
+ NEXT_PUBLIC_ENABLE_NEXT_AUTH="${NEXT_PUBLIC_ENABLE_NEXT_AUTH:-1}" \
56
58
  NEXT_PUBLIC_ENABLE_CLERK_AUTH="${NEXT_PUBLIC_ENABLE_CLERK_AUTH:-0}" \
57
59
  NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}" \
58
60
  CLERK_WEBHOOK_SECRET="whsec_xxx" \
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Align docker auth defaults and better-auth docs."
6
+ ]
7
+ },
8
+ "date": "2025-11-27",
9
+ "version": "2.0.0-next.126"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "features": [
@@ -46,6 +46,13 @@ To enable Better Auth in LobeChat, set the following environment variables:
46
46
  | `NEXT_PUBLIC_AUTH_URL` | Optional | The URL accessible from the browser for Better Auth callbacks. Only set this if the default generated URL is incorrect |
47
47
  | `AUTH_SSO_PROVIDERS` | Optional | Comma-separated list of enabled SSO providers, e.g., `google,github,microsoft` |
48
48
 
49
+ <Callout type={'warning'}>
50
+ If you build/deploy with the official Docker image, the defaults keep **NextAuth enabled** and **Better
51
+ Auth disabled** (`NEXT_PUBLIC_ENABLE_NEXT_AUTH=1`, `NEXT_PUBLIC_ENABLE_BETTER_AUTH=0`) to avoid unexpected
52
+ login redirects. To switch to Better Auth, set both build args and runtime envs explicitly:
53
+ `NEXT_PUBLIC_ENABLE_BETTER_AUTH=1` and `NEXT_PUBLIC_ENABLE_NEXT_AUTH=0`, then rebuild the image.
54
+ </Callout>
55
+
49
56
  ### Supported SSO Providers
50
57
 
51
58
  | Provider | Value | Environment Variables |
@@ -44,6 +44,13 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
44
44
  | `NEXT_PUBLIC_AUTH_URL` | 可选 | 浏览器可访问的 Better Auth 回调 URL。仅在默认生成的 URL 不正确时设置 |
45
45
  | `AUTH_SSO_PROVIDERS` | 可选 | 启用的 SSO 提供商列表,以逗号分隔,例如 `google,github,microsoft` |
46
46
 
47
+ <Callout type={'warning'}>
48
+ 若使用官方 Docker 镜像构建 / 部署,默认是 **开启 NextAuth、关闭 Better Auth**
49
+ (`NEXT_PUBLIC_ENABLE_NEXT_AUTH=1`、`NEXT_PUBLIC_ENABLE_BETTER_AUTH=0`),以避免意外跳转到新版登录页。
50
+ 如果要切换到 Better Auth,请同时显式设置构建参数和运行时环境变量:
51
+ `NEXT_PUBLIC_ENABLE_BETTER_AUTH=1`、`NEXT_PUBLIC_ENABLE_NEXT_AUTH=0`,并重新构建镜像。
52
+ </Callout>
53
+
47
54
  ### 支持的 SSO 提供商
48
55
 
49
56
  | 提供商 | 值 | 环境变量 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.125",
3
+ "version": "2.0.0-next.126",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",