Skip to content

Remove Railway platform-specific auth origin handling#6

Merged
chloeilabs merged 1 commit into
mainfrom
claude/remove-railway-json-xww1V
Apr 17, 2026
Merged

Remove Railway platform-specific auth origin handling#6
chloeilabs merged 1 commit into
mainfrom
claude/remove-railway-json-xww1V

Conversation

@chloeilabs
Copy link
Copy Markdown
Owner

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

  • Removed RAILWAY_URL_ENV_NAME_PATTERN constant used for matching Railway service URL environment variables
  • Deleted getRailwayOrigins() function that detected and normalized Railway-specific environment variables (RAILWAY_PUBLIC_DOMAIN, RAILWAY_STATIC_URL, and RAILWAY_SERVICE_*_URL)
  • Removed the call to getRailwayOrigins() in getTrustedOrigins() function
  • Deleted railway.json deployment configuration file
  • Removed Railway-specific documentation from .env.example that explained how to configure auth origins for Railway production environments

Implementation Details

The removal of Railway origin detection means applications deployed on Railway will need to explicitly configure trusted origins via the BETTER_AUTH_TRUSTED_ORIGINS environment variable instead of relying on automatic detection. This makes the authentication configuration more explicit and platform-agnostic.

https://claude.ai/code/session_01TEnKqp7xQBQXR1VKSJjYty

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
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
finance Ready Ready Preview, Comment Apr 17, 2026 4:11am

Request Review

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chloeilabs chloeilabs enabled auto-merge April 17, 2026 04:11
@chloeilabs chloeilabs merged commit 5ad1cb5 into main Apr 17, 2026
5 checks passed
@chloeilabs chloeilabs deleted the claude/remove-railway-json-xww1V branch April 17, 2026 04:11
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants