dair-ai / dair-ai/Prompt-Engineering-Guide
Bug (Next i18n): Too many redirects
- Dominant language
- MDX
- Stars
- 78.3k
- Forks
- 8.6k
- PR merge metrics
- No merged PRs in 30d
Description
## Description
This pull request aims to resolve the issue of "Too many redirects" in Next.js 13 with Nextra 2.
## Bug Details
The bug occurs when there are multiple redirects happening in the application, leading to an excessive number of redirects and resulting in the "Too many redirects" error.
Reference: https://github.com/shuding/nextra/issues/2566#issue-2021990557
## Steps to Reproduce
To reproduce the bug:
1. Set up a Next.js 13 project with Nextra 2.
2. Select "Chinese" language.
3. Reload the home page.
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file or test is named. Start by reproducing the issue in Next.js 13 with Nextra 2: select Chinese and reload the home page, then compare the behavior with the referenced Nextra issue. Done means the home page no longer enters an excessive redirect loop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100