fix: also patch claude.ai and anthropic.com bare refs in cli.js
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Successful in 2m4s

The previous patch only caught https://claude.ai (36 refs)
but missed bare claude.ai (70 refs) and anthropic.com (24 refs)
used in OAuth and bootstrap URL construction.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-06-20 23:42:15 +08:00
parent 5f750bf07c
commit 7cc6135099
+3
View File
@@ -50,6 +50,8 @@ replacements = [
(b"https://claude.ai", b"http://localhost:4008"),
(b"api.anthropic.com", b"localhost:4008"),
(b"platform.claude.com", b"localhost:4008"),
(b"claude.ai", b"localhost:4008"),
(b"anthropic.com", b"localhost:4008"),
]
total = 0
for old, new in replacements:
@@ -58,6 +60,7 @@ for old, new in replacements:
d = d.replace(old, new)
total += c
d = d.replace(b"https://localhost:4008", b"http://localhost:4008")
d = d.replace(b"http://localhost:4008:4008", b"http://localhost:4008")
with open(path, "wb") as f:
f.write(d)