Skip to content

Conversation

@yash-sangwan
Copy link

Problem

The "Next" button on the Next.js App Router documentation page (https://docs.convex.dev/client/nextjs/app-router/) was linking back to the same page instead of advancing to the Server Rendering section.

Cause

Docusaurus determines pagination automatically based on sidebar_position values. The app-router directory had:

  • server-rendering.mdx with sidebar_position: 10 (appears first)
  • index.mdx with sidebar_position: 200 (appears second)

Without explicit pagination configuration, the "Next" button from the index page (being the last item in the category) didn't navigate correctly.

Solution

Added explicit pagination_next: client/nextjs/app-router/server-rendering to the frontmatter of app-router/index.mdx.

Fixes #285

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add explicit pagination_next to app-router/index.mdx to ensure the
Next button navigates to the Server Rendering page instead of
looping back to itself.

Fixes get-convex#285
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.

Incorrect "Next" button on a docs page.

2 participants