QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.26k stars 59 forks source link

Feedback for “Middleware configuration” #195

Closed ivanafanasyeu closed 11 months ago

ivanafanasyeu commented 11 months ago

urlMappingStrategy: rewrite is not working

QuiiBz commented 11 months ago

Please provide a reproduction. It works as expected in https://github.com/QuiiBz/next-international/tree/main/examples/next-app

ivanafanasyeu commented 11 months ago

Please provide a reproduction. It works as expected in https://github.com/QuiiBz/next-international/tree/main/examples/next-app

Strange, it's not rewriting. Copying next-app example and change it to "rewrites" using with basePath.

p.s. But issue is outdated. It works only in pages, no example for using it in pure server components without async function. Thanks for help