This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Convenience injection of rewrites & exportPathMap #1155
Labels
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
When using
next-intl
with:output: "export"
basePath
(this might be a red herring)Both the built routing, and the
dev
served routing don't recognize the localized paths.Describe the solution you'd like
NextJS supports
exportPathMap
andrewrites
in its config.We could provide such utility functions which could automagically populate the routes according to rational dev expectations.
I'd sugest a wrapper / currying / composition instead of a simple utility function, since library users may already have
exportPathMap
s orrewrites
in place.If this sounds like a good idea, let me know in the comments and I'll open a PR.
I've got a rough implementation of this solution.
Describe alternatives you've considered
This combination of settings to the best of my knowledge can't be tackled in any other way 🫤
The text was updated successfully, but these errors were encountered: