Replies: 5 comments 5 replies
-
|
This API does not work for me currently in 15 latest canary. It simply returns {} for every page its called in |
Beta Was this translation helpful? Give feedback.
-
|
FYI this has been moved from |
Beta Was this translation helpful? Give feedback.
-
|
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, |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
We also shipped https://nordicdownhillseries.com with root params. Works excellent! |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
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 the latest 15.x and 16.x releases of Next.js, I'd be curious how this feature is working for users ofnext-intlthat have already decided to give it a shot!My impression so far has been positive, these are my findings.
Bugs/missing:
cacheComponentsare not supportedNice-to-have:
next/root-params, butdynamicParams = falsemight not trigger a 404 in production if you're using dynamic APIs on the page (generateStaticParams with dynamicParams false does not show not-found page on production vercel/next.js#54270)Let me know if
next/root-paramsworks well for your app!Beta Was this translation helpful? Give feedback.
All reactions