mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #24] [MERGED] feat: point Comfy Cloud at cloud.comfy.org and default baseUrl to it #35
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/24
Author: @wei-hai
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @wei-hai
Base:
main← Head:wei/cloud-comfy-org-base-url📝 Commits (2)
e0f3823docs: point Comfy Cloud at cloud.comfy.org4a61652feat: default baseUrl to Comfy Cloud📊 Changes
8 files changed (+42 additions, -9 deletions)
View changed files
📝
README.md(+1 -1)📝
spec/openapi.yaml(+1 -1)📝
src/index.ts(+1 -1)📝
src/low/followUpLinks.test.ts(+2 -2)📝
src/low/generated/types.gen.ts(+1 -1)📝
src/sdk/client.ts(+13 -2)➕
src/sdk/defaultBaseUrl.test.ts(+22 -0)📝
src/sdk/index.ts(+1 -1)📄 Description
Comfy Cloud serves
/api/v2oncloud.comfy.org.api.comfy.orgkeeps serving the node registry, so this is a new hostname for the cloud API rather than a domain rename.Two changes
1. Point at the new host —
spec/openapi.yamlservers:, thebaseUrlunion regenerated from it viapnpm generate(one line; no generator drift), docs and test fixtures.2. Default
baseUrlto it. It was a required argument, so every caller hardcoded a host — which is why a server-side move otherwise forces every caller to edit their own code. Now:Added as an overload rather than an optional first parameter, so the options-only form doesn't read
new Comfy(undefined, { apiKey }).COMFY_CLOUD_BASE_URLis exported for callers who want the value.Backward compatible — the positional form every existing caller uses is untouched, and an explicit URL still wins.
Verification
pnpm test138 passing across 16 files (4 new, covering all constructor forms),pnpm typecheckandpnpm lintclean.Note:
npm cifails here — the repo is pnpm (packageManager: pnpm@11.13.0) with nopackage-lock.json. Usepnpm install --frozen-lockfile.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.