For hobby apps and open-source projects, a *.pagefrontapp.com domain might be all you need. However, for serious projects, most people are going to want to add a custom domain of their own. Pagefront makes this process simple.
Add the Domain
Navigate to your app in the Pagefront dashboard and click on "Settings" in the top nav. Once on the settings page, you should see "Custom Domains." Click the "Add" button. Select the environment you would like this domain to apply to. Then, just enter the domain name and click the "Create" button. You should see something like this:
Update Your DNS Settings
Click the "Copy" button to copy the DNS target. Now just head over to your DNS provider and add a CNAME pointing your custom domain to this target. That's it. While everything is propagating, you will see a little loading indicator next to your new custom domain:
As soon as everything is ready to go, you will get a little green check mark:
Go ahead and visit your custom domain. You should see your app now!
A Note on Root Domains
We recommend using subdomains (app.example.com or www.example.com) when adding a custom domain. Root domains (example.com) have certain limitations and will only work if your DNS provider has support for CNAME-like functionality at the apex. The providers with known support for this are: