Bring your custom domain
Bring Fern Docs to your custom domain. You can use:
- A subdomain on your custom domain, such as
docs.mydomain.com - A subpath on your custom domain, such as
mydomain.com/docs - A root domain, such as
mydomain.com
Once you’ve set up your domain, use the Fern Dashboard to manage site settings.
Subdomain
To host your documentation on a subdomain like docs.mydomain.com, you need to create a CNAME record in your DNS settings.
Update the domain in docs.yml
Add your custom-domain and merge your changes into main. Here’s an example.
Contact Fern
Contact Fern via your dedicated Slack channel or email to receive:
- A unique CNAME value for your site
- A TXT record to verify your domain
Create DNS records
Log in to your domain registrar’s dashboard and navigate to the DNS settings for your domain. Add the following records:
Replace docs with any subdomain you want to use.
Cloudflare users
If you are using Cloudflare, you should ensure the record isn’t proxied.
Verify the setup
Once Fern has completed your setup, you’ll be able to access your documentation at docs.mydomain.com. SSL will be automatically provisioned for your domain, but it may take a few minutes to propagate globally.
Subpath
To host your documentation on a subpath like mydomain.com/docs, you need to edit your docs.yml configuration and then get provider-specific instructions for setting up the subpath. Common providers include Cloudflare, AWS Route53 and Cloudfront, Netlify, and Vercel.
Root domain
To host your documentation on a root domain like mydomain.com, you need to edit your docs.yml configuration and then get provider-specific instructions for setting up the domain. Common providers include Cloudflare, AWS Route53 and Cloudfront, Netlify, and Vercel.
Contact Fern
Contact Fern via your dedicated Slack channel or email to receive:
- A unique CNAME value for your site
- A TXT record to verify your domain
Configure your DNS settings
You’ll need the following DNS records configured for your root domain.
This redirects mydomain.com to www.mydomain.com.
After you add these records, Fern will provision a SSL certificate.
Verify the setup
Once Fern has completed your setup, you’ll be able to access your documentation at mydomain.com. SSL will be automatically provisioned for your domain, but it may take a few minutes to propagate globally.