Reputation: 940
We have a working React app for http://domain1.com/directory/members/jim
We'd like to use the same app for http://domain2.com/jim
How can we define the routes for the two domains? Or can we put in place a substitution algorithm somewhere?
Upvotes: 0
Views: 175
Reputation: 8479
You can make both urls work for all domains, but then you can't have a member named "directory". That is a really ugly restriction.
Why don't you just serve 2 different apps on the 2 domains? They can still share 99 % of the code.
Upvotes: 1