Replies: 8 comments 10 replies
|
This API does not work for me currently in 15 latest canary. It simply returns {} for every page its called in |
|
FYI this has been moved from |
|
on next 15.5.0, current api can await a value, but import { locale } from 'next/root-params';
const localeValue = await locale(); // `localeValue` type is anyi wonder how to add types in the future, |
|
We just shipped triptojapan.com with root params. The code cleanup is great and we are finally using The only issue we ran into was in preview environments. In |
|
We also shipped https://nordicdownhillseries.com with root params. Works excellent! |
|
What is the current state of this feature? I see a few related PRs from Summer 2025 (e.g. vercel/next.js#82244) but it's been pretty quiet since then. Is Next.js still considering |
|
it works great 🫶 |
|
I ran into an issue where I couldn't finish the implementation due to the following: Your docs / blog tells to use the root param fetcher in the request config. However when I do, Nextjs yells at me, saying that it should be used in the app directory only. Not sure if it due to us using useExtracted. I will have to dig deeper. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
With
next/root-paramsbeing available in Next.js 16.3, I'd be curious to hear how this feature is working for users ofnext-intl!Here's a blog post I wrote on it:
→ Using
next/root-paramsin Next.js 16.3My impression so far has been very positive, these are my findings:
createMiddlewarefromnext-intlin a proxy, be sure to split calls todefineRoutingandcreateNavigationinto separate files (ref)Let me know if
next/root-paramsworks well for your app!(this discussion initially tracked an earlier version of
next/root-paramsbut is now updated for Next.js 16.3)All reactions