You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: advanced/subpath/vercel.mdx
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,14 @@ description: "Host documentation at a subpath using Vercel"
5
5
6
6
<Steps>
7
7
<Steptitle="Move your docs files">
8
-
Edit your file structure so that all your files are within a folder which is your custom subpath. So if you want to host your docs at [my-cool-custom-domain.com/docs](http://my-cool-custom-domain.com/docs) you would do the following:
8
+
Edit your file structure so that all your files are within a folder which is your custom subpath. So if you want to host your docs at `/docs` you would do the following:
9
9
10
10
```
11
11
/docs
12
12
introduction.mdx
13
13
navigation.mdx
14
14
docs.json
15
15
```
16
-
17
16
</Step>
18
17
<Steptitle="Configure your vercel.json">
19
18
In your main website add the following rewrites to your `vercel.json`. Make sure to replace `[SUBDOMAIN]` with your subdomain.
@@ -56,12 +55,11 @@ description: "Host documentation at a subpath using Vercel"
56
55
]
57
56
}
58
57
```
59
-
60
58
</Step>
61
59
</Steps>
62
60
63
61
<Note>
64
62
For more information, you can also refer to Vercel's offical guide on
0 commit comments