You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using the beta react-servers instructions, you end up with a homepage without a locale.
Describe the solution you'd like
I ended up creating a locales.json to abstract away the available/default locales, and both call it in next.config.js for the rewrite so it adds the default locale if not present. This makes it work for the homepage too.
No idea if this is supposed to be handled differently, but this is the solution I arrived with, maybe it would be good to add this as canonical way to handle the no locale on homepage issue?
Best regards!
Describe alternatives you've considered
Waiting for the beta to be stabilised and am sure you'll handle this
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When using the beta react-servers instructions, you end up with a homepage without a locale.
Describe the solution you'd like
I ended up creating a locales.json to abstract away the available/default locales, and both call it in next.config.js for the rewrite so it adds the default locale if not present. This makes it work for the homepage too.
locales.json
next.config.ts
middleware.ts
No idea if this is supposed to be handled differently, but this is the solution I arrived with, maybe it would be good to add this as canonical way to handle the no locale on homepage issue?
Best regards!
Describe alternatives you've considered
Waiting for the beta to be stabilised and am sure you'll handle this
The text was updated successfully, but these errors were encountered: