Skip to content

Conversation

@zhangxin-github
Copy link

  • 在next.config.ts中添加basePath配置项,默认从环境变量NEXT_PUBLIC_BASE_PATH读取
  • 更新docker-compose.yml,添加NEXT_PUBLIC_BASE_PATH环境变量配置
  • 修改聊天面板、消息显示、示例面板等多个组件中的图片和API请求路径
  • 统一引入nextConfig并应用到fetch请求和图片src属性中

- 在next.config.ts中添加basePath配置项,默认从环境变量NEXT_PUBLIC_BASE_PATH读取
- 更新docker-compose.yml,添加NEXT_PUBLIC_BASE_PATH环境变量配置
- 修改聊天面板、消息显示、示例面板等多个组件中的图片和API请求路径
- 统一引入nextConfig并应用到fetch请求和图片src属性中
@vercel
Copy link

vercel bot commented Dec 18, 2025

@zhangxin-github is attempting to deploy a commit to the dayuanjiang's projects Team on Vercel.

A member of the Team first needs to authorize it.

@DayuanJiang
Copy link
Owner

Thanks for the PR! There's an overlapping PR #311 addressing the same issue.

I noticed #311 has a cleaner utility abstraction and documentation, while yours covers the about pages. However, note that next/image automatically handles basePath, so the Image src changes may cause double-prefixing.

I'll proceed with #311 as the base and close this one as a duplicate. Feel free to review there or suggest any improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants