Remove Railway platform-specific auth origin handling#6
Merged
Conversation
The app deploys on Vercel, so Railway's deploy config and the Better Auth trusted-origin resolution from RAILWAY_* env vars are no longer needed. https://claude.ai/code/session_01TEnKqp7xQBQXR1VKSJjYty
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
chloeilabs
added a commit
that referenced
this pull request
Apr 17, 2026
…-preview-customtools Remove Gemini 3.1 Pro customtools model from registry
chloeilabs
added a commit
that referenced
this pull request
Apr 17, 2026
Remove Railway platform-specific auth origin handling
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
This PR removes Railway-specific configuration and origin detection logic from the authentication system, simplifying the codebase by eliminating platform-specific deployment handling.
Key Changes
RAILWAY_URL_ENV_NAME_PATTERNconstant used for matching Railway service URL environment variablesgetRailwayOrigins()function that detected and normalized Railway-specific environment variables (RAILWAY_PUBLIC_DOMAIN,RAILWAY_STATIC_URL, andRAILWAY_SERVICE_*_URL)getRailwayOrigins()ingetTrustedOrigins()functionrailway.jsondeployment configuration file.env.examplethat explained how to configure auth origins for Railway production environmentsImplementation Details
The removal of Railway origin detection means applications deployed on Railway will need to explicitly configure trusted origins via the
BETTER_AUTH_TRUSTED_ORIGINSenvironment variable instead of relying on automatic detection. This makes the authentication configuration more explicit and platform-agnostic.https://claude.ai/code/session_01TEnKqp7xQBQXR1VKSJjYty