This repository was archived by the owner on Feb 15, 2026. It is now read-only.
feat: make all domains configurable for self-hosting#11
Merged
Conversation
Replace hardcoded keyway.sh domains with env-driven config values. Add GITHUB_URL for GitHub Enterprise support. Make CORS, error URLs, email addresses, and OAuth flows use centralized config. Make Vercel integration slug configurable. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add optional chaining fallback so errors.ts works when config isn't fully initialized (e.g., in CI test runs without env vars). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Config properties like config.github and config.app can be undefined in test environments where vi.mock provides partial config objects. Use optional chaining with defaults for all module-level constants and function-level config accesses that could be undefined. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
keyway.shdomain references with env-driven config valuesGITHUB_URLconfig for GitHub Enterprise Server support (separate from API URL)ALLOWED_ORIGINSinstead of hardcodingkeyway.shTest plan
grep -r "keyway\.sh" src/shows no hardcoded refs outside of defaultsGITHUB_URL=https://github.example.comand verify OAuth URLs use itALLOWED_ORIGINSERROR_BASE_URLconfig🤖 Generated with Claude Code