Provides GitHub REST API base URL from env var with normalization.
// Source: https://github.com/first-tree-ai/first-tree | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. /** * Single source of truth for the GitHub REST API base URL. * * Reads `FIRST_TREE_GITHUB_API_BASE_URL` once at module load. Default is * the public host. Override is read at process start, so tests that need to * point GitHub traffic at a mock must spawn the server with the env var set * (the in-process `fastify.inject` tests under `__tests__/` keep working * against the default because they stub `fetch` directly). * * Out of scope here: `https://github.com/login/oauth/*` (the OAuth start / * token endpoints live on the web host, not the API host). Those are not * e ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key