Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(suspensive.org): resolve locale initialization issue (#1311)
# Overview <!-- A clear and concise description of what this pr is about. --> I address an issue where undefined locale URLs defaulted to 'en' in Nextra documentation. I've implemented Nextra's middleware to recognize locale cookies. https://github.com/user-attachments/assets/03a068df-feef-47f4-b505-532fb29da329 ### [AS-IS] - Custom middleware redirecting undefined locales to '/en' ### [TO-BE] - Use Nextra's built-in middleware - Exclude 'img' directory in matcher configuration - Prevents unnecessary middleware processing for image files, aligning with Nextra's example configuration (see [Nextra PR #3439](https://github.com/shuding/nextra/pull/3439/files#diff-e986406290c383f5b481ce7bc0136f142b96083e0807190d530561eea83bfc70R5-R7) `icon.svg`) ### Issue Nextra styles may appear broken in development. See [Issue #3357](shuding/nextra#3357). Could you please confirm if you're experiencing this as well? <img width="1797" alt="스크린샷 2024-10-13 오후 8 26 02" src="https://github.com/user-attachments/assets/88dd507a-81ab-4312-abce-feea2a714495"> ## PR Checklist - [x] I did below actions if need 1. I read the [Contributing Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md) 2. I added documents and tests.
- Loading branch information