feat(routing): index TanStack Start server endpoints - #4
Open
bompus wants to merge 1 commit into
Open
Conversation
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.
TanStack Start's server-only files previously appeared as pages without HTTP handlers. Exported file routes now produce method-qualified endpoints from literal
server.handlerstables and the documentedcreateHandlerscallback form. Named handlers and direct calls inside inline handlers are linked; middleware is excluded. A route with a page component and HTTP handlers keeps both representations.Computed/spread tables, custom factories, member handlers, and update chains stay unsupported. Type-only imports and absent components cannot invent endpoints or pages; RPC functions receive no fabricated public URL.
Framework detection now refreshes during sync using the already-collected file list, allowing a newly added dependency and route to be indexed in both full and scoped sync. Scoped detection retains other packages' known frameworks.
Validation: build passed; 62 WASM focused/control tests passed; full native suite passed (4,375 tests, 46 skipped). Tests cover handler bindings, navigation to the page rather than the endpoint, middleware/local exclusions, dynamic negatives, edits/deletion, and adding Start after initial indexing. Independent review findings were fixed and rechecked.
Step 2 of the approved application-router plan; stacked on #3.