dair-ai / dair-ai/Prompt-Engineering-Guide

Bug (Next i18n): Too many redirects

Open
#409 0 comments 1 reaction 0 assignees View on GitHub
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.

Screenshot 2024-02-29 at 7 23 57 PM

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.