Enable Railway-friendly frontend/backend split via configurable API base URL#1
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/Dingge01/noteking-pro/sessions/c067dc44-f15c-498d-b5d0-912692feba94 Co-authored-by: Dingge01 <262081671+Dingge01@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Dingge01
April 19, 2026 14:36
View session
Dingge01
approved these changes
Apr 19, 2026
Dingge01
approved these changes
Apr 19, 2026
Dingge01
approved these changes
Apr 19, 2026
Dingge01
approved these changes
Apr 19, 2026
Copilot stopped work on behalf of
Dingge01 due to an error
April 19, 2026 14:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当前前端默认通过
hostname:8000直连后端,这在 Railway 的公网部署模型下不稳定,无法保证通过https://noteking-production.up.railway.app/直接访问前端并正确调用后端。此 PR 将前端后端地址解耦为环境变量驱动,并同步更新 Railway 双服务部署文档。Frontend API routing(web)
NEXT_PUBLIC_API_URL。:8000)。Railway deployment docs(docs/deploy-guide.md)
api/web两个服务。web服务,后端由NEXT_PUBLIC_API_URL指向。Environment variable reference(README.md)
NEXT_PUBLIC_API_URL说明,标注 Railway 场景为关键配置项。