Skip to content

Commit 6239bbd

Browse files
devin-ai-integration[bot]dannysheridandevalog
authored
Update Vercel CNAME documentation to reflect unique CNAME per site (#1350)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Devin Logan <[email protected]>
1 parent 5525906 commit 6239bbd

File tree

4 files changed

+105
-48
lines changed

4 files changed

+105
-48
lines changed

.vale.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Microsoft.Acronyms = NO # Handled in FernStyles
1616
Microsoft.Vocab = NO # Too granular for now
1717
Microsoft.HeadingAcronyms = NO # Not relevant for Fern audience
1818
Microsoft.GeneralURL = NO # Not relevant for Fern audience
19+
Microsoft.Headings = NO # Handled in FernStyles
1920
Microsoft.Passive = NO # Too noisy
2021
Microsoft.Accessibility = NO # Too noisy
2122

.vale/styles/FernStyles/Acronyms.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ exceptions:
1111
- API
1212
- ASP
1313
- CLI
14+
- CNAME # Fern-specific
1415
- CPU
1516
- CSS
1617
- CSV
1718
- DEBUG
19+
- DNS # Fern-specific
1820
- DOM
1921
- DPI
2022
- FAQ
@@ -54,6 +56,7 @@ exceptions:
5456
- TBD
5557
- TCP
5658
- TODO
59+
- TXT # Fern-specific
5760
- URI
5861
- URL
5962
- USB
@@ -63,4 +66,5 @@ exceptions:
6366
- YAML
6467
- ZIP
6568
- MDX # Fern-specific
66-
- SEO # Fern-specific
69+
- SEO # Fern-specific
70+
- AWS # Fern-specific
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
extends: capitalization
2+
message: "'%s' should use sentence-style capitalization."
3+
link: https://docs.microsoft.com/en-us/style-guide/capitalization
4+
level: suggestion
5+
scope: heading
6+
match: $sentence
7+
indicators:
8+
- ':'
9+
exceptions:
10+
- CLI
11+
- Docker
12+
- I
13+
- Linux
14+
- macOS
15+
- Marketplace
16+
- MongoDB
17+
- REPL
18+
- Studio
19+
- TypeScript
20+
- URLs
21+
- Visual
22+
- VS
23+
- Windows
24+
- CNAME
25+
- DNS
26+
- Fern
27+
- Support
28+
- Markdown
29+
- Docs

fern/products/docs/pages/getting-started/setting-up-your-domain.mdx

Lines changed: 70 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ title: Bring your custom domain
33
description: Learn how to set up your Fern-generated documentation site to use a custom subdomain or subpath.
44
---
55

6-
Bring Fern Docs to your custom domain.
7-
8-
You can use:
9-
- A subdomain on your custom domain, such as `docs.example.com`
10-
- A subpath on your custom domain, such as `example.com/docs`
11-
- A root domain, such as `example.com`
6+
Bring Fern Docs to your custom domain. You can use:
7+
- A subdomain on your custom domain, such as `docs.mydomain.com`
8+
- A subpath on your custom domain, such as `mydomain.com/docs`
9+
- A root domain, such as `mydomain.com`
1210

1311
<Info>
1412
Once you've set up your domain, use the [Fern Dashboard](https://dashboard.buildwithfern.com/) to manage site settings.
@@ -17,60 +15,70 @@ You can use:
1715
<AccordionGroup>
1816
<Accordion title = "Subdomain">
1917

20-
To host your documentation on a subdomain, i.e. `docs.mydomain.com`, you need to create a CNAME record in your DNS settings.
18+
To host your documentation on a subdomain like `docs.mydomain.com`, you need to create a CNAME record in your DNS settings.
2119

2220
<Steps>
2321

2422
### Update the domain in `docs.yml`
2523

26-
```yaml
24+
Add your `custom-domain` and merge your changes into `main`. [Here's an example](https://github.com/octoml/fern-config/blob/389b67679953856ba0716537981a6d749635556f/fern/docs.yml#L1-L3 ).
25+
26+
```yaml docs.yml
2727
instances:
2828
- url: example.docs.buildwithfern.com
2929
custom-domain: docs.mydomain.com
3030
```
3131
32-
Merge your changes into `main`. [Here's an example](https://github.com/octoml/fern-config/blob/389b67679953856ba0716537981a6d749635556f/fern/docs.yml#L1-L3 ).
32+
### Contact Fern
3333
34+
Contact Fern via your dedicated Slack channel or [email](mailto:[email protected]) to receive:
35+
- A unique CNAME value for your site
36+
- A TXT record to verify your domain
3437
35-
### Create a CNAME record
38+
### Create DNS records
3639
37-
1. Log in to your domain registrar's dashboard.
38-
2. Navigate to the DNS settings for your domain.
39-
3. Add a new CNAME record with the following details:
40-
- **Type**: `CNAME`
41-
- **Name**: `docs` (or any subdomain you want to use)
42-
- **Value**: `cname.vercel-dns.com.`
43-
44-
<Warning title="Cloudflare Users">
45-
If you are using Cloudflare, you should ensure the record is not proxied.
46-
</Warning>
40+
Log in to your domain registrar's dashboard and navigate to the DNS settings for your domain. Add the following records:
4741
48-
### Reach out to us
42+
<CodeBlock title="CNAME Record (Subdomain)">
43+
```
44+
Type Name Value
45+
CNAME docs [unique CNAME value provided by Fern]
46+
```
47+
</CodeBlock>
48+
49+
<CodeBlock title="TXT Record (Domain Verification)">
50+
```
51+
Type Name Value
52+
TXT @ [TXT record value provided by Fern]
53+
```
54+
</CodeBlock>
4955

50-
Once you've completed the steps above, reach out via your dedicated Slack channel or [email](mailto:[email protected]).
56+
Replace `docs` with any subdomain you want to use.
5157

52-
You may need to create a TXT record to verify your domain. If you do, we'll provide you with the record to add.
58+
<Warning title="Cloudflare users">
59+
If you are using Cloudflare, you should ensure the record isn't proxied.
60+
</Warning>
5361

5462
### Verify the setup
5563

56-
Once we've completed the setup on our end, you should 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.
64+
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.
5765

58-
<Tip>It's helpful to check that you can access your new docs site from a mobile device or incognito browser.</Tip>
66+
<Tip>Check that you can access your new docs site from a mobile device or incognito browser.</Tip>
5967

6068
</Steps>
6169
</Accordion>
6270

6371
<Accordion title = "Subpath">
6472

65-
To host your documentation on a subpath, i.e. `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.
73+
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.
6674

6775
<Steps>
6876

6977
### Configure the `url` in `docs.yml`
7078

7179
Append that subpath to the end of the `url`. This example use `docs` for the subpath, but you can use any word you like, such as `reference` or `developer`.
7280

73-
<CodeBlock title="docs.yml example for subpath">
81+
<CodeBlock title="docs.yml">
7482
```yaml
7583
instances:
7684
- url: example.docs.buildwithfern.com/docs
@@ -79,74 +87,89 @@ instances:
7987
8088
### Configure the `custom-domain`
8189

82-
Below the `url`, add a `custom-domain` key as shown in the examples below.
90+
Below the `url`, add a `custom-domain` key:
8391

84-
<CodeBlock title="Custom subpath">
85-
```yaml
86-
instances:
92+
<CodeBlock title="docs.yml">
93+
```yaml
94+
instances:
8795
- url: example.docs.buildwithfern.com/docs
88-
custom-domain: example.com/docs
96+
custom-domain: mydomain.com/docs
8997
```
9098
</CodeBlock>
9199

92100
[Here's an example.](https://github.com/fern-api/fern/blob/7d8631c6119787a8aaccb4ba49837e73c985db28/fern/docs.yml#L1-L3)
93101

94-
### Update the Fern Docs site
102+
### Contact Fern
95103

96-
If you created your Fern Docs site using one of our [Docs Quickstarts](/learn/docs/getting-started/quickstart), push the changes you made to your GitHub repository. This runs a GitHub Action to update the site with your new configuration.
104+
Contact Fern via your dedicated Slack channel or [email](mailto:[email protected]) to set up your custom subpath.
97105

98-
If you need to update your Fern Docs site manually, run `fern generate --docs`.
106+
### Verify the setup
99107

100-
### Reach out to us
108+
Once Fern has completed your setup, you'll be able to access your documentation at `mydomain.com/docs`. It may take a few minutes for DNS changes to propagate globally.
101109

102-
Reach out to [email protected] to get the configuration for setting up your custom subpath.
110+
<Tip>Check that you can access your new docs site from a mobile device or incognito browser.</Tip>
103111

104112
</Steps>
105113
</Accordion>
106114
<Accordion title = "Root domain">
107115

108-
To host your documentation on a root domain, i.e. `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.
116+
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.
109117

110118
<Steps>
111119

112120
### Configure the `url` in `docs.yml`
113121

114-
<CodeBlock title="Root domain">
122+
<CodeBlock title="docs.yml">
115123
```yaml
116124
instances:
117125
- url: example.docs.buildwithfern.com
118-
custom-domain: www.example.com
126+
custom-domain: www.mydomain.com
119127
```
120128
</CodeBlock>
121129

122130
[Here's an example.](https://github.com/dannysheridan/katiedanny/blob/2fcf5769e2994af29e31d00904e04788b188a18b/fern/docs.yml#L3-L5)
123131

132+
### Contact Fern
133+
134+
Contact Fern via your dedicated Slack channel or [email](mailto:[email protected]) to receive:
135+
- A unique CNAME value for your site
136+
- A TXT record to verify your domain
137+
124138
### Configure your DNS settings
125139

126-
You'll need two DNS records configured for your root domain.
140+
You'll need the following DNS records configured for your root domain.
127141

128-
<CodeBlock title="WWW DNS Record">
142+
<CodeBlock title="CNAME Record (WWW Subdomain)">
129143
```
130144
Type Name Value
131-
CNAME www cname.vercel-dns.com.
145+
CNAME www [unique CNAME value provided by Fern]
132146
```
133147
</CodeBlock>
134148
135-
<CodeBlock title="Apex Domain DNS Record">
149+
<CodeBlock title="A Record (Apex Domain)">
136150
```
137151
Type Name Value
138152
A @ 76.76.21.21
139153
```
140154
</CodeBlock>
141155
156+
<CodeBlock title="TXT Record (Domain Verification)">
157+
```
158+
Type Name Value
159+
TXT @ [TXT record value provided by Fern]
160+
```
161+
</CodeBlock>
162+
142163
This redirects `mydomain.com` to `www.mydomain.com`.
143164
144-
Contact Fern Support after adding these records and we will provision a SSL certificate.
165+
After you add these records, Fern will provision a SSL certificate.
145166
146167
### Verify the setup
147168
148-
Once we've completed the setup re-generate your docs by running `fern generate --docs`. Within two minutes, you should be able to access your documentation at `mydomain.com`.
169+
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.
170+
171+
<Tip>Check that you can access your new docs site from a mobile device or incognito browser.</Tip>
149172
150173
</Steps>
151174
</Accordion>
152-
</AccordionGroup>
175+
</AccordionGroup>

0 commit comments

Comments
 (0)