Docker v1.51.4+ 页面静态化问题反馈(NextAuth 登录、FEATURE_FLAGS 、请求500 报错等)
背景
基于 RFC https://github.com/lobehub/lobe-chat/discussions/5461 ,我们在 1.51.4 版本实现了页面路由的静态化,这个版本更新带来的好处是首屏页面加载能进入 1s 内,二次进入能做到百毫秒级别,进而实现页面的秒开体验。
但由于在这个版本我们尝试了一种新的路由架构来支持 RFC 中提到的效果,因此可能存在一些问题需要实践检验。目前已知的问题有:
环境变量(FEATURE_FLAG、MODEL_LIST) 失效(1.51.13 修复):
- #5797
- #5811
NextAuth 集成失效(1.51.13 修复):
- #5801
- #5803
/ 频繁报错,无法跳转登陆页(1.51.15 修复)
- #5828
- https://github.com/lobehub/lobe-chat/issues/5837
/discover/assistant/[id] 500 (1.51.6 修复)
- #5809
- #5794
/settings/provider/[id] 500 (1.51.10 修复)
- https://github.com/lobehub/lobe-chat/pull/5807
/file/[id] 500 (1.51.11 修复)
- https://github.com/lobehub/lobe-chat/pull/5812
如果大家还遇到其他问题,欢迎在下面留言补充,我争取第一时间修复。
~~针对上述问题,临时解法是锁定到 v1.51.3 版本,等我把几个核心问题修复后再升级上来。~~
目前可以尝试 1.52.0 版本
问题合集:
- https://github.com/lobehub/lobe-chat/discussions/5461#discussioncomment-12100266
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
background
Based on RFC https://github.com/lobehub/lobe-chat/discussions/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):
- #5797
next_auth integration failed (the reason is currently unknown, under research):
- #5801
- #5803
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.
database 版本,部分 provider 无法设置
/settings/provider/google /settings/provider/deepseek /settings/provider/siliconcloud
等等,会出现500 错误
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
database version, some providers cannot be set
/settings/provider/google /settings/provider/deepseek /settings/provider/siliconcloud
Wait, there will be 500 errors
@hedeqiang 这个正在看,应该是哪里解析有bug,应该能很快修复
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@hedeqiang This is being viewed. Where should there be a bug in the analysis? It should be fixed soon
auth0会有问题吗
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Will there be any problems with auth0?
@hedeqiang 这个正在看,应该是哪里解析有bug,应该能很快修复
[rewrite] /settings/provider/siliconcloud -> /en-US__0__light/settings/provider/siliconcloud
⨯ Error: you must `import '@anthropic-ai/sdk/shims/web'` before importing anything else from @anthropic-ai/sdk
at d (.next/server/chunks/67755.js:1:351)
at 588127 (.next/server/chunks/67755.js:2:5650)
at t (.next/server/webpack-runtime.js:1:143)
at 151336 (.next/server/chunks/15468.js:528:6818)
at t (.next/server/webpack-runtime.js:1:143)
at <unknown> (.next/server/chunks/15468.js:565:4009)
at t.a (.next/server/webpack-runtime.js:1:989)
at 327579 (.next/server/chunks/15468.js:565:3840)
at t (.next/server/webpack-runtime.js:1:143)
at <unknown> (.next/server/chunks/15468.js:565:67462) {
digest: '532622106'
}
⨯ Error: you must `import '@anthropic-ai/sdk/shims/web'` before importing anything else from @anthropic-ai/sdk
at d (.next/server/chunks/67755.js:1:351)
at 588127 (.next/server/chunks/67755.js:2:5650)
at t (.next/server/webpack-runtime.js:1:143)
at 151336 (.next/server/chunks/15468.js:528:6818)
at t (.next/server/webpack-runtime.js:1:143)
at <unknown> (.next/server/chunks/15468.js:565:4009)
at t.a (.next/server/webpack-runtime.js:1:989)
at 327579 (.next/server/chunks/15468.js:565:3840)
at t (.next/server/webpack-runtime.js:1:143)
at <unknown> (.next/server/chunks/15468.js:565:67462) {
digest: '532622106'
}
@BryceWG 理论上应该也有,是 next-auth 的集成方面的问题
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@BryceWG It should be theoretically also, it is a problem with the integration of next-auth
我固定v1.51.3了,这么大的更新为什么是个小版本号呢?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
I'm fixed v1.51.3, why is such a big update a small version number?
@YANANEER 因为用了 perf 的 tag,然后自动走了 patch 版本号 😅 其实的确应该发一个中版本
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@YANANEER Because I used the perf tag, and then I automatically left the patch version number 😅 In fact, I should indeed send a medium version
@hedeqiang provider 500 问题已修复,更新到最新即可
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@hedeqiang provider 500 The issue has been fixed, just update to the latest
Docker版本应该不影响Vercel部署的吧? #5815
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Docker version should not affect Vercel deployment, right? #5815
1.51.11 登录的账号信息消失,用的 next_auth, 账号界面显示的 Community User, 但所有模型、功能都还是可用。 切换隐私模式,无法跳转到登录界面,右上角一直弹“将转到登录界面”之类的信息。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
1.51.11 The logged-in account information disappears, using next_auth, the Community User displayed on the account interface, but all models and functions are still available. Switching the privacy mode, you cannot jump to the login interface, and information such as "Will go to the login interface" is constantly popping up in the upper right corner.
@nzhdotme 应该和 https://github.com/lobehub/lobe-chat/issues/5801 是同一个问题
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
@nzhdotme should be the same as https://github.com/lobehub/lobe-chat/issues/5801
FEATURE_FLAGS的失效导致+pin_list不可用,上线这么久了这个功能应该默认开启了吧?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
The failure of FEATURE_FLAGS causes +pin_list to be unavailable. This function should be enabled by default after being launched for so long?
FEATURE_FLAGS的失效导致+pin_list不可用,上线这么久了这个功能应该默认开启了吧?
你说的有道理,我下一个版本把这个默认开启吧。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
FEATURE_FLAGS fails, resulting in +pin_list being unavailable. This function should be enabled by default after being launched for so long?
What you said makes sense, I will enable this by default in the next version.
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Roll back to v1.51.3, first screen 404
An error in the background
环境变量不生效的问题修了吗
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is the problem that environmental variables are not effective?
FEATURE_FLAGS的失效导致+pin_list不可用,上线这么久了这个功能应该默认开启了吧?
你说的有道理,我下一个版本把这个默认开启吧。
pin_list 感觉还不够完善, 这里的 todo 拖拽顺序没实现, 比如我想把某个放在第一个还需要一个一个取消后重新 pin
个人看法是可以在实现排序后再考虑默认开启