Skip to content

Clarify --component flag refers to module name#18

Merged
sethconvex merged 1 commit into
mainfrom
magicseth/check-gh-issues
May 15, 2026
Merged

Clarify --component flag refers to module name#18
sethconvex merged 1 commit into
mainfrom
magicseth/check-gh-issues

Conversation

@sethconvex

Copy link
Copy Markdown
Collaborator

Summary

The --component <name> flag in the upload and deploy CLIs takes a Convex module path prefix (i.e. convex/<name>.ts — the file where you re-export exposeUploadApi(...)), not the component name registered in convex.config.ts. The previous help text and docs said "Convex component name", which is misleading when those names differ — e.g. component registered as selfHosting but upload API exposed in convex/staticHosting.ts.

This PR is doc-only:

  • Updates --component help text in upload, deploy, and the init-emitted CLI Reference
  • Updates README CLI options blocks for both commands
  • Renames the INTEGRATION.md troubleshooting section and rewrites it to call out the misnomer explicitly

No code or default-value changes.

Test plan

  • Updated help text reads cleanly when wrapped in the help output
  • Skim rendered README/INTEGRATION on GitHub

The --component flag's value is the Convex module path prefix where the
upload API is exposed (i.e. convex/<module>.ts), not the component name
registered in convex.config.ts. The previous wording caused confusion
when those names differed.
@pkg-pr-new

pkg-pr-new Bot commented May 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/get-convex/static-hosting/@convex-dev/static-hosting@18

commit: 29a5606

@sethconvex
sethconvex merged commit ec02951 into main May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant