-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Docs - fix redirects #15697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs - fix redirects #15697
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
WalkthroughThe changes update routing configurations across two files. In Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NextServer
participant Config
User->>NextServer: Request URL
NextServer->>Config: Load configuration
Config-->>NextServer: Return config (with trailingSlash & redirect rules)
alt URL matches a redirect rule
NextServer->>User: Redirects (301)
else
NextServer->>User: Serve requested page
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
docs-v2/next.config.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs ✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs-v2/next.config.mjs (1)
20-409: Consider centralizing or systematically generating redirect rules.
The large set of redirection rules may benefit from a more maintainable structure, such as a dedicated file or utility function to reduce the likelihood of typos and simplify updates. Additionally, consider testing for conflicting or redundant sources/destinations.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
docs-v2/next.config.mjs(2 hunks)docs-v2/vercel.json(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- docs-v2/vercel.json
🔇 Additional comments (1)
docs-v2/next.config.mjs (1)
11-11: Confirm the impact of adding trailing slashes.
EnablingtrailingSlash: truecan impact SEO and break relative links if they're not consistently updated. Please verify that all references throughout the docs are compatible with trailing slash URLs.
WHY
Summary by CodeRabbit
New Features
Chores