Repository navigation
Self-host: the dashboard's links point at the install, never at coderhelm.com - #227
Merged
Merged
Conversation
…helm.com - The API keys and plugins pages called NEXT_PUBLIC_API_URL or api.coderhelm.com instead of the runtime config, so on a self-hosted install they called the hosted API. They now use apiBase(). - The API keys page showed https://api.coderhelm.com in its instructions and curl example; it shows the install's own API address. - "Install the GitHub App", "Fix access in GitHub", "Reinstall the GitHub app" and the installation settings link opened the hosted app (github.com/apps/coderhelm). They go through the install's /auth/github/app, which redirects to its own app. - The legacy platform-admin fallback (admin@coderhelm.com) applies on the hosted dashboard only. Guards: e2e/selfhost-links.spec.ts runs with a self-host runtime config and fails on any coderhelm.com link other than docs.coderhelm.com and on calls leaving the install; it runs in the self-host build job too. scripts/no-hosted-links.mjs (part of npm run lint) fails on new hardcoded hosted addresses in src/.
nambok
force-pushed
the
fix/selfhost-links
branch
from
October 26, 2026 20:38
381fe24 to
3c1f69e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The dashboard's links point at the install it runs in, never at coderhelm.com. On a self-hosted install, the API keys and plugins pages called the hosted API, the API keys page told people to use
https://api.coderhelm.com, and the GitHub App buttons opened CoderHelm's hosted app. Paired with CoderHelm/coderhelm-platform#312, which adds the/auth/github/appredirect these buttons use.Changes
lib/api-keys.tsandlib/plugins.ts: callapiBase()from the runtime config, notNEXT_PUBLIC_API_URLorapi.coderhelm.com.apiOrigin(), the install's own API.githubAppUrl()sends them to the install's/auth/github/app, which redirects to the install's own app on GitHub (withstatefor a new installation, or an installation's settings).admin@coderhelm.com, for gateways before theplatform_adminfield) applies on the hosted dashboard only.scripts/no-hosted-links.mjs, run bynpm run lint: fails on new hardcodedapp.,api.,stream.orauth.coderhelm.com, the marketing site orgithub.com/apps/coderhelminsrc/, outsidelib/runtime-config.ts.e2e/selfhost-links.spec.ts: with a self-host runtime config, the API keys, Repositories and GitHub pages show and call only the install, and have no coderhelm.com links other than docs.coderhelm.com. It runs in the self-host build job too.Verification
npm run lint(UI lint and the new check),npm run typecheck: pass.selfhost,google-analyticsandselfhost-linksspecs, 25 passed (after rebasing onto Talk to us about moving from CoderHelm cloud to self-host #225, Docs: tables that read on a phone, and settings as definition lists #226 and Settings, System, Models: switch how a self-hosted install calls Claude, and show when an update needs model access #230).no-hosted-linksallowscomponents/google-analytics.tsx: itsapp.coderhelm.comis the hostname check that keeps analytics off every other host, not a link.