Want to change the domain that your NorthStack app is using? Prefer a fancier subdomain for your development sites? In this article, we'll show you how to change your domain details inside your NorthStack app.
- Begin by opening the main directory for your NorthStack app on your local machine.
- Next, you'll see a another directory labeled config. Jump on into it.
- Inside your config directory, you'll see subdirectories for each environment (dev, prod, and test). Go ahead and enter the directory for the environment that you want to change the domain on.
You should now see a domains.json file that you can open up with your favorite text editor. It should look something like this:
To change it to another domain, simply edit add your domain like this:
- Once edited, save your changes and deploy your app! If you haven't pointed the domain to your app yet and need more information on doing so, take a look at our article on pointing domains to NorthStack apps.