Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughA new permanent redirect rule has been added to the Next.js configuration. This rule instructs the application to redirect all requests from the root path Changes
Possibly related PRs
Poem
✨ Finishing Touches
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. 🪧 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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
next.config.js (1)
39-44: The redirect implementation looks good, but consider the redirect chain impact.The implementation of redirecting the root path '/' to 'https://peanut.me' is correctly configured with the appropriate parameters. Setting
permanent: truemeans browsers will cache this redirect, which is suitable for a long-term change.However, I noticed that there's an existing redirect from '/pioneers' to '/' (lines 70-74). With this new redirect, users accessing '/pioneers' will experience a redirect chain:
- '/pioneers' → '/'
- '/' → 'https://peanut.me'
This creates an unnecessary extra hop that impacts user experience and SEO.
Consider updating the '/pioneers' redirect to point directly to 'https://peanut.me':
{ source: '/pioneers', - destination: '/', + destination: 'https://peanut.me', permanent: true, }
| permanent: false, | ||
| basePath: false, | ||
| }, | ||
| { |
There was a problem hiding this comment.
@jjramirezn qn, what about other routes? if user directly goes to peanut.to/cashout, request, send or any other route? This can be a case for users coming through old social media posts?
Summary by CodeRabbit