dvajs

Create a subdomain like slack does e.g. : https://someteam.slack.com/ in REACT JS

橙三吉。 提交于 2020-06-16 17:31:25
问题 I am trying to implement feature like slack does in react. You all know before logged-in on Slack, the url looks like this https://www.slack.com/ , but once you logged in it change to https://www.team.slack.com/ . So i have my react project with 2 different layouts (landing layout & client dashboard). What i am looking for is.. Landing layout should runs on https://www.example.com/ and once client logged in successfully the domain get change into https://www.clientname.example.com/ and admin

Create a subdomain like slack does e.g. : https://someteam.slack.com/ in REACT JS

六月ゝ 毕业季﹏ 提交于 2020-06-16 17:28:09
问题 I am trying to implement feature like slack does in react. You all know before logged-in on Slack, the url looks like this https://www.slack.com/ , but once you logged in it change to https://www.team.slack.com/ . So i have my react project with 2 different layouts (landing layout & client dashboard). What i am looking for is.. Landing layout should runs on https://www.example.com/ and once client logged in successfully the domain get change into https://www.clientname.example.com/ and admin