Git Repository link always shows, defaulting to the canonical upstream repo

Previously hidden entirely when NEXT_PUBLIC_GIT_REPO_URL was unset, which
meant it never appeared on localhost or on anyone else's clone that hadn't
explicitly configured it. It should always point somewhere - the canonical
repo (git.ciagent.org) is the sensible default everywhere, overridable only
by a deployment that runs its own separate git server.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
2026-08-05 20:56:48 -04:00
co-authored by Claude Sonnet 5
parent 3e1fa1845b
commit 4867793b66
4 changed files with 34 additions and 23 deletions
+5 -3
View File
@@ -16,9 +16,11 @@ BACKEND_URL=http://localhost:8000
# so for LAN access this must be the host's LAN IP, not localhost (e.g.
# http://192.168.1.190:8000). Leave unset for localhost-only access.
NEXT_PUBLIC_API_URL=http://localhost:8000
# "Git Repository" link on the landing page header, next to Sign in - only
# rendered when this is set (e.g. https://git.ciagent.org/you/ci-agent).
# Leave blank if you don't run a public git server for this deployment.
# "Git Repository" link on the landing page header, next to Sign in.
# Defaults to the canonical upstream repo (git.ciagent.org) when unset - the
# button always shows, even on a clone that hasn't set this at all. Only set
# this if you run your own self-hosted git server and want the button to
# point at your fork instead of upstream.
NEXT_PUBLIC_GIT_REPO_URL=
# --- Reverse proxy (only relevant once deployed behind Cloudflare/Nginx) -----