Skip to content

fix(cli): default to hosted service and clarify unreachable-server error#6

Merged
pessini merged 1 commit into
mainfrom
fix/cli-default-hosted-url
Jun 24, 2026
Merged

fix(cli): default to hosted service and clarify unreachable-server error#6
pessini merged 1 commit into
mainfrom
fix/cli-default-hosted-url

Conversation

@pessini

@pessini pessini commented Jun 24, 2026

Copy link
Copy Markdown
Owner

A litedrop.dev signup who installs the CLI and runs litedrop login hit could not reach the server: fetch failed, because the default base URL was http://localhost:8080 — optimized for self-hosters at the expense of the far more common hosted-service user.

Default DEFAULT_BASE_URL to https://app.litedrop.dev so litedrop login works with no flags for hosted signups; self-hosters point at their own server once with --url (or LITEDROP_API_URL), which is persisted. When validation can't reach the server, login now prints actionable guidance for both hosted and self-hosted users instead of a bare "fetch failed". README notes the hosted default. Bump CLI to 0.1.3.

A litedrop.dev signup who installs the CLI and runs `litedrop login` hit
`could not reach the server: fetch failed`, because the default base URL was
`http://localhost:8080` — optimized for self-hosters at the expense of the far
more common hosted-service user.

Default DEFAULT_BASE_URL to https://app.litedrop.dev so `litedrop login` works
with no flags for hosted signups; self-hosters point at their own server once
with `--url` (or LITEDROP_API_URL), which is persisted. When validation can't
reach the server, login now prints actionable guidance for both hosted and
self-hosted users instead of a bare "fetch failed". README notes the hosted
default. Bump CLI to 0.1.3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pessini pessini merged commit 6af7729 into main Jun 24, 2026
6 checks passed
@pessini pessini deleted the fix/cli-default-hosted-url branch June 24, 2026 16:58
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