dair-ai / Prompt-Engineering-Guide

🐙 Guides, papers, lecture, notebooks and resources for prompt engineering
https://www.promptingguide.ai/
MIT License
46.77k stars 4.53k forks source link

Bug (Next i18n): Too many redirects #409

Open 1997roylee opened 5 months ago

1997roylee commented 5 months ago

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.