Skip to content

Fix/page structure#7506

Merged
mhartington merged 4 commits intomainfrom
fix/page-structure
Feb 17, 2026
Merged

Fix/page structure#7506
mhartington merged 4 commits intomainfrom
fix/page-structure

Conversation

@mhartington
Copy link
Member

@mhartington mhartington commented Feb 17, 2026

Summary by CodeRabbit

  • New Features

    • Enhanced search: results are now reranked to improve relevance and accuracy.
  • Improvements

    • Standardized documentation redirects (removed trailing slashes) for more consistent navigation.
    • Added automatic redirect from the site root to the documentation landing page for quicker access.

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 17, 2026 10:51am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 17, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

The PR adds a root page that redirects to /docs, enables reranking for the docs search API, normalizes redirect destinations in apps/docs/vercel.json (removing trailing slashes), and adjusts path keys used by the link linter.

Changes

Cohort / File(s) Summary
Search API
apps/docs/src/app/api/search/route.ts
Added rerank: true to the createMixedbreadSearchAPI call to enable reranking of search results.
Root route
apps/docs/src/app/page.tsx
New file: default-exported page component that immediately redirects requests from / to /docs.
Vercel redirects
apps/docs/vercel.json
Normalized redirect destinations by removing trailing slashes (e.g., /docs//docs) across many entries.
Link linter mapping
apps/docs/scripts/lint-links.ts
Updated populate mapping keys to remove surrounding parentheses from path patterns (e.g., '(docs)/(default)/[[...slug]]''docs/(default)/[[...slug]]').

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Fix/page structure #7506 — Applies the same changes: adds rerank: true, introduces apps/docs/src/app/page.tsx redirect, and normalizes destinations in apps/docs/vercel.json.
🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Fix/page structure' is vague and generic, using non-descriptive language that doesn't clearly convey what was actually changed in the codebase. Consider a more descriptive title like 'Normalize docs redirects and add home page redirect' or 'Remove trailing slashes from redirect destinations and add root redirect' to better communicate the specific changes.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

🍈 Lychee Link Check Report

3660 links: ✅ 2975 OK | 🚫 19 errors | 🔀 0 redirects | 👻 664 excluded

❌ Errors

./apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/mongodb.mdx

./apps/docs/content/docs.v6/(index)/prisma-orm/quickstart/mongodb.mdx

./apps/docs/content/docs.v6/ai/index.mdx

./apps/docs/content/docs.v6/orm/more/comparisons/prisma-and-drizzle.mdx

./apps/docs/content/docs.v6/orm/more/dev-environment/editor-setup.mdx

  • [503] https://fig.io/ | Rejected status code (this depends on your "accept" configuration): Service Unavailable

./apps/docs/content/docs.v6/orm/overview/introduction/should-you-use-prisma.mdx

./apps/docs/content/docs.v6/orm/overview/prisma-in-your-stack/graphql.mdx

./apps/docs/content/docs.v6/orm/prisma-client/setup-and-configuration/databases-connections/index.mdx

./apps/docs/content/docs.v6/orm/prisma-client/testing/integration-testing.mdx

./apps/docs/content/docs.v6/orm/prisma-client/testing/unit-testing.mdx

./apps/docs/content/docs.v6/orm/prisma-schema/overview/generators.mdx

./apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx

./apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx

./apps/docs/content/docs/ai/index.mdx

./apps/docs/content/docs/orm/more/comparisons/prisma-and-drizzle.mdx

./apps/docs/content/docs/orm/more/dev-environment/editor-setup.mdx

  • [503] https://fig.io/ | Rejected status code (this depends on your "accept" configuration): Service Unavailable

./apps/docs/content/docs/orm/prisma-client/testing/integration-testing.mdx

./apps/docs/content/docs/orm/prisma-client/testing/unit-testing.mdx

./apps/docs/content/docs/orm/prisma-schema/overview/generators.mdx


Full Statistics Table
Status Count
✅ Successful 2975
🔀 Redirected 0
👻 Excluded 664
🚫 Errors 19
⛔ Unsupported 2
⏳ Timeouts 0
❓ Unknown 0

coderabbitai[bot]
coderabbitai bot previously approved these changes Feb 17, 2026
@mhartington mhartington merged commit b5cfa55 into main Feb 17, 2026
4 of 10 checks passed
@mhartington mhartington deleted the fix/page-structure branch February 17, 2026 10:49
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.

1 participant