Repository navigation
Conversation
`setupConvexAuthServer` returned three handlers, so a Next app mounted three route files under `app/auth/`, each a one-line re-export. It now also returns `handler`, which dispatches on the last path segment (`signin`, `refresh`, `signout`) and answers 404 to anything else, so one `app/auth/[route]/route.ts` serves all three. The individual handlers stay for frameworks without dynamic segments or apps that want them apart. The example and the Next.js setup docs move to the single route. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RuiNWRbC1cfyoU7jnDzisM
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
…oxy's 400 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RuiNWRbC1cfyoU7jnDzisM
commit: |
This branch was successfully deployed
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.
Problem
setupConvexAuthServerreturns three handlers, so a Next app mounts three route files underapp/auth/, each a one-line re-export of one handler.Change
setupConvexAuthServeralso returnshandler, which dispatches on the last path segment (signin,refresh,signout) and answers 404 to anything else. One file serves all three:The three individual handlers stay, for frameworks without dynamic segments or apps that want the routes apart. Dispatch is on the last segment only, so the base can be mounted anywhere (
/api/account/auth/[route]works the same).Also
ssr/setup.test.tscovers each route, a nested base path with trailing slash, and the 404.examples/nextjsmoves toapp/auth/[route]/route.ts;ssr-nextjs/setup.mdxand the example README follow, with the per-file layout kept as a callout.Validated with
pnpm build,check:declarations,lint,typecheck, and the core test suite (902 passing).Generated by Claude Code