-
-
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
NEXT_PUBLIC_BASE_PATH 异常 #7006
Comments
📦 Deployment environmentDocker 📦 Deployment modeServer-side mode (lobe-chat-database mirror) 📌 Software versionLatest 💻 System environmentUbuntu 🌐 BrowserChrome 🐛 Question descriptionBuild the image through Dockerfile.database according to the following command
start up:
.env.local file:
After starting, accessing through: http://localhost:3210/lobechat will appear 404. When accessing through http://localhost:3210/lobechat/lobechat, the loading page will appear, but in the future, it will still reach http://localhost:3210/lobechat, resulting in 404. 📷 Reproduction stepsNo response 🚦 Expected resultsAs above 📝 Supplementary informationAs above |
👀 @coder2z Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey @coder2z, I'm here to help you with your coding bugs and answer any questions you may have. Let's squash those bugs together! 🤖 I found a similar unsolved discussion titled " To address the 404 error when accessing the application with a custom base path, ensure that the
These steps should help ensure that the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
The issue you're experiencing with the
By addressing these points, you should be able to resolve the 404 errors and ensure that the application correctly handles the base path. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
这里确认 环境变量设置成功,我进入容器后打印过 |
Confirm here that the environment variable is set successfully. I printed it after entering the container. |
basePath 已经计划废弃 |
basePath is already planned to be abandoned |
✅ @coder2z This issue is closed, If you have any questions, you can comment and reply. |
如果需要的话 应该如何处理呢?网关 rewrite 的方式吗? |
What should I do if I need it? Is the way to rewrite the gateway? |
📦 部署环境
Docker
📦 部署模式
服务端模式(lobe-chat-database 镜像)
📌 软件版本
latest
💻 系统环境
Ubuntu
🌐 浏览器
Chrome
🐛 问题描述
通过 Dockerfile.database 按照如下命令构建镜像
启动:
.env.local file:
启动后通过:http://localhost:3210/lobechat 访问会出现 404,通过 http://localhost:3210/lobechat/lobechat 访问会出现loading页面,但是后续还是会302 到 http://localhost:3210/lobechat 导致404
📷 复现步骤
No response
🚦 期望结果
如上
📝 补充信息
如上
The text was updated successfully, but these errors were encountered: