Switching from directory-based URL to subdomain-based URL in ReactJS and Django
I have developed a web application using ReactJS and Django, allowing users to create custom websites. Currently, these websites are stored in the website.com/applicationname directory. However, I want to switch to a subdomain-based URL structure, where each user's custom website is accessible via applicationname.website.com.
How can I achieve that? My application is hosted in Heroku.