Repository navigation
fix(routes): discover routes under routes/.well-known - #508
Merged
Merged
Conversation
The convention file glob skipped every dot path, so a route such as /.well-known/security.txt could not be a file. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CZxFCFRcYc9ojkUsSvuz5j
cpojer
approved these changes
Oct 21, 2026
cpojer
left a comment
Member
There was a problem hiding this comment.
That makes sense, thanks for the fix!
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.
Route files under
routes/.well-known/are not discovered, because the convention file glob skips every dot path. So a well-known URI (RFC 8615) whose response is built at request time cannot be a route. For example,routes/.well-known/apple-app-site-association.tsthat reads the app ID fromc.envis ignored, and the app has to rewrite the path to another route instead.This change adds a
.well-known/**pattern to the glob. Other dot paths are still skipped. Static well-known files inpublic/are not affected.A new test in
scan.test.tsfails onmainand passes with this change.