next-translate-routes icon indicating copy to clipboard operation
next-translate-routes copied to clipboard

[WIP] Add domain routing support

Open cvolant opened this issue 1 year ago • 2 comments

The current changes seem to work but don't.

In the example, the api docs link is broken:

  • In fr, it is not translated correctly when multi domain is configured
  • In en, a clic creates a looping redirection event when multi domain is not configured

cvolant avatar Mar 01 '23 12:03 cvolant

I've yet to give this a proper test but will do so over the next few days, as we have a requirement to use domain based routing with translated paths. Have you been using it with any success? One tiny thing I noticed, is that the README will need to be updated to remove domain routing from the list of unsupported features.

nicrodgers avatar Apr 20 '23 17:04 nicrodgers

This does seem to work well with Next 12. It doesn't work with next 13, but then the main next-translate-routes package says it's not yet next13 compatible, so that makes sense... Will do more testing over the next few days...

nicrodgers avatar Apr 21 '23 14:04 nicrodgers