feat: 域名页一键直达 Cloudflare 的域名绑定页 - #103
Merged
Merged
Conversation
页面原本只读:列出绑定却不管下一步。现在 configured 响应带上 accountId
(非机密,本就在每个 dash URL 里),前端用它拼
dash.cloudflare.com/{account}/workers/services/view/{script}/production/domains
的外链,放在「重新读取」旁;缺 accountId 就不显示,不猜。
token 仍永不进响应,测试钉死两条边界。
Co-Authored-By: Claude <noreply@anthropic.com>
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.
内容
「绑定的域名」页目前纯只读:列出绑定,不管下一步。操作者发现要加域名后,还得自己去 dash 翻 Worker 列表。
/api/domainsconfigured 响应新增accountId(非机密,本就在每个 dash URL 里;token 仍永不进响应,测试钉死)dash.cloudflare.com/{account}/workers/services/view/{script}/production/domains(格式经两处独立代码源核实),在「重新读取」旁渲染「去绑定」外链(Base UI render prop →<a target="_blank" rel="noreferrer">)accountId(未配置凭据)就不显示按钮,不猜账户验证
npm run check(CI 同款)exit=0,零 error,371 测试全过accountId等于配置值;unconfigured 时该字段省略🤖 Generated with Claude Code