Skip to content

Conversation

@Biki-dev
Copy link
Collaborator

Summary

Restored locale-based redirection by reintroducing the logic as a proper Next.js middleware.ts.

Changes

  • Added middleware.ts to handle locale detection and redirection
  • Added cookie support to persist user locale

solves #458

@broBinChen
Copy link
Contributor

In Next.js version 16, the middleware file convention has been deprecated and should now be replaced with proxy.ts. For more details, please refer to: https://nextjs.org/docs/messages/middleware-to-proxy

@DayuanJiang
Copy link
Owner

@broBinChen Yes, I accidentally deleted the proxy.ts file. Putting it back should fix it.

@DayuanJiang DayuanJiang merged commit 1ab8d26 into DayuanJiang:main Dec 30, 2025
4 of 5 checks passed
@Biki-dev
Copy link
Collaborator Author

@broBinChen Thanks, yes — that was my mistake. I used the old middleware name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants