Skip to content

fix(tech-detect): railway-app reads server: railway-edge too #1504 - #1505

Closed
nc9 wants to merge 1 commit into
mainfrom
fix/railway-edge-header
Closed

nc9 wants to merge 1 commit into
mainfrom
fix/railway-edge-header

Conversation

@nc9

@nc9 nc9 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Closes #1504.

Railway's changelog for its v3 edge proxy says the new proxy is confirmed by a server: railway-edge header. The railway-app Server signature was ^railway(?:-hikari)?$, so a custom-domain site served by that proxy went undetected (the host signal covers only *.railway.app). The pattern is now ^railway(?:-(?:hikari|edge))?$ (case-insensitive, anchored).

  • Source: Railway's changelog entry for the new edge proxy beta (2024-05-17) and its edge-networking documentation; no third-party site was probed. A community thread reports railway-edge seen on a custom domain; Railway's docs do not say which proxy generation each value is, so all three values are accepted.
  • Tests (hosting-suffix-1449.test.ts, 25 pass; the two railway-edge cases fail on main): railway, railway-hikari, railway-edge in any case on a custom domain are detected; railway-edge-x, xrailway, not-railway-edge, railway-edges, railway edge, railway- are not.
  • generated.ts is edited directly (its source data file is not in the repo, as in tech-detect: hosting signatures written as host suffixes match third-party URLs in the page HTML #1449). CHANGELOG under Unreleased / Fixed.

Skill: no change needed.

nik

@nc9 nc9 mentioned this pull request Nov 1, 2026
@nc9

nc9 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.156 as 20fa5ace via #1506.

nik

@nc9 nc9 closed this Nov 1, 2026
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.

tech-detect: railway-app header signal ^railway(?:-hikari)?$ misses the current Railway edge (server: railway-edge)

1 participant