* feat: change the root path to react-router-dom to render spa
* feat: disable / to /chat rewrite
* feat: change /settings labs image profile changelog to spa mode
* feat: use loading to dynamic loading
* fix: change the goback & knowledge/base url
* feat: change some nextjs router to react-router-dom use
* feat: link replace to react-router-dom
* fix: delete useless code
* feat: fix mobile agent settings page not work problem
* fix: fix the test
* fix: slove the router back
* fix: slove ts problem
* fix: change the router judge by servers
* feat: change AppRouter to Desktop Router & mobile Router to dynamic import
* fix: refactor the memory router to browser router
* feat: /chat delete pages & layouts dir
* feat: change all discover page to the spa
* feat: discover pages layout & pages routers get done
* feat: change all routes to outer routes
* feat: change the :slug to react-router loader to get
* feat: change NextJs Link useRouter useSearchParams change to react-router way
* fix: delete some layout tsx & update the ts
* feat: change local params get use ReactRouter Outlet context
* fix: fix hydrateFallback problem
* fix: fix build problem
* fix: change the changelog pages render
* feat: delete all nuqs
* feat: change the mobile me layout back
* chore: add mobile me layout back
* fix: discover find more link error fixed
* fix: add nuqs back & useQueryState back in oath
* fix: add files back
* fix: add files back
* feat: use starTransition to navigate url
* fix: close the loading in the layout loading
* chore: update test.ts in TopActions.tsx
* fix: delete useless code
* fix: fix mobile router goback fc
* fix: delete the changelog modal page
* feat: fix a lot router problem
* fix: fix useNav in discover page error problem
* feat: rollback some changes about layout
* fix: fixed the desktop knowledge page router
* fix: fixed usage router error
* fix: fixed router link error
* fix: fixed the url & new url not path problem
* fix: fixed the test
* feat: update the useQueryParams throttleMs params
* feat: use more simple way to update session hydration
* fix: delete useless code
* fix: delete uesless code
* fix: mobile chat settings go back
* fix: fix the reload was loading page problem
* fix: fixed the test error
* fix: add router ErrorBoundary
* test: test the loading error
* fix: try to fixed
* fix: test mobile
* feat: add loading back
* ✨ feat: 添加服务端头像上传功能,支持从 Base64 数据上传至 S3,并更新用户头像状态
* 🐛 fix: 修复更新头像后依旧有可能显示旧头像
* Undo changes of package.json and Clerk
* change message of loading to ui of loading in avatar-update
* Using the getFullFileUrl function
* fix file service
* Modify the user avatar upload and retrieval functions to support a private S3 bucket, use UUID to generate unique file names, and delete the old avatar.
---------
Co-authored-by: arvinxx <arvinx@foxmail.com>
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 https://github.com/lobehub/lobe-chat/issues/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 )不受影响
变更详情原因查看 https://github.com/lobehub/lobe-chat/issues/5804
* ✨ feat: pglite 迁移实现
refactor modal name
pin pglite@0.2.13
add serverExternalPackages for pglite
fix tests
update model
remove migration
back previous test file
* 💚 build: fix build with ReactScan
* clean
* refactor with isDBinit
* fix test
* ♻️ refactor: refactor user store
* ♻️ refactor: refactor the user trace
* 🐛 fix: fix parser model
* 🐛 fix: fix parser model
* 🐛 fix: fix parser model
* ♻️ refactor: refactor modal
* 🐛 fix: try to fix modal
* 🐛 fix: fix model list select error
* ✅ test: add test for model list
* ♻️ refactor: refactor file by file and upload for upload to s3
* ✨ feat: support upload file to s3
* ✅ test: fix test
* 🛂 feat: add auth for the upload path
* ✅ test: fix circular deps
* ✅ test: add more tests
* ✅ test: add more tests
* ✅ test: add more tests
* ✅ test: add more tests
* ♻️ refactor: refactor the user store with auth slice
* ♻️ refactor: separate common and sync slice
* 🧑💻 chore: add an isMobile selector
* ♻️ refactor: refactor the auth action and common action
* 🎨 chore: clean code