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
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:
@@ -50,6 +50,8 @@ replacements = [
|
|||||||
(b"https://claude.ai", b"http://localhost:4008"),
|
(b"https://claude.ai", b"http://localhost:4008"),
|
||||||
(b"api.anthropic.com", b"localhost:4008"),
|
(b"api.anthropic.com", b"localhost:4008"),
|
||||||
(b"platform.claude.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
|
total = 0
|
||||||
for old, new in replacements:
|
for old, new in replacements:
|
||||||
@@ -58,6 +60,7 @@ for old, new in replacements:
|
|||||||
d = d.replace(old, new)
|
d = d.replace(old, new)
|
||||||
total += c
|
total += c
|
||||||
d = d.replace(b"https://localhost:4008", b"http://localhost:4008")
|
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:
|
with open(path, "wb") as f:
|
||||||
f.write(d)
|
f.write(d)
|
||||||
|
|||||||
Reference in New Issue
Block a user