fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

different dynamic routes based per domain name #179

Closed zsolt-dev closed 1 year ago

zsolt-dev commented 6 years ago

Hi,

I am not sure if next-routes is the good solution for me, but I am building an web that will be localised in 10+ languages (each language on dedicated domain) and would like to serve them from the same next.js server.

Is there a way to use define next-routes based on domain name?

for example: us web site on example.com: routes .add('about') .add('blog', '/blog/:slug')

and for example.es routes .add('aboutInSpanish') .add('blog', '/blogInSpanish/:slug')

???

Also it would need to work on client too.

THank you

DonStanislas commented 5 years ago

Des nouvelles de ce sujet ?

DonStanislas commented 5 years ago

@zsolt-dev Did you find the solution?