-
-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Docker v1.51.4+ 页面静态化问题反馈(NextAuth 登录、FEATURE_FLAGS 、请求500 报错等) #5804
Comments
backgroundBased on RFC #5461, we implemented the static page routing in version 1.51.4. The benefit of this version update is that the homepage can be loaded within 1s. , the secondary entry can reach the level of 300~500ms, thereby realizing the instant opening experience of the page. But in this version, we tried a new routing architecture to support the effects mentioned in RFC, so there may be some problems that need to be tested in practice. Currently known problems are: FEATURE_FLAG is invalid (most likely, the RSC parameters cannot be transmitted through after the page is static, and are trying to fix it): next_auth integration failed (the reason is currently unknown, under research):
If you encounter other problems, please leave a message below to add, and I will try to fix it as soon as possible. In response to the above problems, the temporary solution is to lock the v1.51.3 version, and I will upgrade it after I fix several core problems. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@morningtzh This is a problem that will occur after the image is automatically installed by npm@10. Check whether the entire repository code is exactly the same as the current main branch. |
从日志上看还是pnpm 9.15.5 的。镜像构建依然使用 ./lobechat/Dockerfile.database 进行构建的。 |
From the log, it is still pnpm 9.15.5. Mirror builds are still built using ./lobechat/Dockerfile.database. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
忽然就没法用了,就是静态化的问题吗? |
@daiaji 试下 |
我大概知道这是为什么了,不知道是新版node.js还是新版next.js的锅,你指定监听 |
@daiaji 没懂, |
@daiaji I don’t understand, why can’t this be solved? |
这不是头疼治头,脚疼治脚吗? |
Isn’t this a headache to treat the head, and is it a pain in the feet to treat the feet? |
加上这个理论上就能发送外部请求,至少应该就不会报错了吧 |
In addition, this theory can send external requests, at least it shouldn't be reported. |
只是从解决问题来说,没错,我一开始出问题时就已经降级版本了。 |
Just from the point of solving the problem, that's right, I downgraded the version when there was a problem at the beginning. |
进入到应用设置界面后再点击会话界面,模型变成4o-mini,提示词清空 |
刷新后恢复 |
This upgrade includes two changes: For users deploying with Vercel using next-auth, it is necessary to add the environment variable `NEXT_PUBLIC_ENABLE_NEXT_AUTH=1` to ensure Next Auth is enabled; other users are not affected. For users using clerk in self-built images, it is necessary to additionally configure `NEXT_PUBLIC_ENABLE_NEXT_AUTH=0` to disable Next Auth Other standard deployment scenarios (using Clerk in Vercel and using next-auth in Docker) are not affected For More detail, refer to lobehub#5804 本次升级存在两个变更: - 针对使用 Vercel 部署中使用 next-auth 的用户,需要额外添加 `NEXT_PUBLIC_ENABLE_NEXT_AUTH=1` 环境变量来确保开启 Next Auth - 针对使用自构建镜像中使用 clerk 的用户,需要额外配置 `NEXT_PUBLIC_ENABLE_NEXT_AUTH=0` 环境变量来关闭 Next Auth 其他标准部署场景(Vercel 中使用 Clerk 与 Docker 中使用 next-auth )不受影响 变更详情原因查看 lobehub#5804
经过2周疯狂优化,目前应该已经稳定。本 issue 关闭 |
✅ @arvinxx This issue is closed, If you have any questions, you can comment and reply. |
After 2 weeks of crazy optimization, it should be stable at present. This issue closes |
背景
基于 RFC #5461 ,我们在 1.51.4 版本实现了页面路由的静态化,这个版本更新带来的好处是首屏页面加载能进入 1s 内,二次进入能做到百毫秒级别,进而实现页面的秒开体验。
但由于在这个版本我们尝试了一种新的路由架构来支持 RFC 中提到的效果,因此可能存在一些问题需要实践检验。目前已知的问题有:
环境变量(FEATURE_FLAG、MODEL_LIST) 失效(1.51.13 修复):
NextAuth 集成失效(1.51.13 修复):
/
频繁报错,无法跳转登陆页(1.51.15 修复)/discover/assistant/[id]
500 (1.51.6 修复)/settings/provider/[id]
500 (1.51.10 修复)/file/[id]
500 (1.51.11 修复)/file/[id]
500 issue #5812如果大家还遇到其他问题,欢迎在下面留言补充,我争取第一时间修复。
针对上述问题,临时解法是锁定到 v1.51.3 版本,等我把几个核心问题修复后再升级上来。目前可以尝试 1.52.0 版本
问题合集:
The text was updated successfully, but these errors were encountered: