Skip to content

Commit 518cd02

Browse files
committed
add [SUBDOMAIN]
1 parent a12793a commit 518cd02

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

advanced/subpath/vercel.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: "Vercel"
33
description: "Host documentation at a subpath using Vercel"
44
---
55

6-
ffdsafdsafd
7-
86
<Steps>
97
<Step title="Move your docs files">
108
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:
@@ -15,53 +13,55 @@ ffdsafdsafd
1513
navigation.mdx
1614
docs.json
1715
```
16+
1817
</Step>
1918
<Step title="Configure your vercel.json">
20-
In your main website add the following rewrites to your `vercel.json`
19+
In your main website add the following rewrites to your `vercel.json`. Make sure to replace `[SUBDOMAIN]` with your subdomain.
2120

2221
```json
2322
{
2423
"rewrites": [
2524
{
2625
"source": "/api/request",
27-
"destination": "https://hahnbeeyeet.mintlify.app/api/request"
26+
"destination": "https://[SUBDOMAIN].mintlify.app/api/request"
2827
},
2928
{
3029
"source": "/custom/subdirectory",
31-
"destination": "https://hahnbeeyeet.mintlify.app"
30+
"destination": "https://[SUBDOMAIN].mintlify.app"
3231
},
3332
{
3433
"source": "/custom/subdirectory/llms.txt",
35-
"destination": "https://hahnbeeyeet.mintlify.app/llms.txt"
34+
"destination": "https://[SUBDOMAIN].mintlify.app/llms.txt"
3635
},
3736
{
3837
"source": "/custom/subdirectory/llms-full.txt",
39-
"destination": "https://hahnbeeyeet.mintlify.app/llms-full.txt"
38+
"destination": "https://[SUBDOMAIN].mintlify.app/llms-full.txt"
4039
},
4140
{
4241
"source": "/custom/subdirectory/sitemap.xml",
43-
"destination": "https://hahnbeeyeet.mintlify.app/sitemap.xml"
42+
"destination": "https://[SUBDOMAIN].mintlify.app/sitemap.xml"
4443
},
4544
{
4645
"source": "/custom/subdirectory/robots.txt",
47-
"destination": "https://hahnbeeyeet.mintlify.app/robots.txt"
46+
"destination": "https://[SUBDOMAIN].mintlify.app/robots.txt"
4847
},
4948
{
5049
"source": "/custom/subdirectory/:path*",
51-
"destination": "https://hahnbeeyeet.mintlify.app/custom/subdirectory/:path*"
50+
"destination": "https://[SUBDOMAIN].mintlify.app/custom/subdirectory/:path*"
5251
},
5352
{
5453
"source": "/mintlify-assets/:path+",
55-
"destination": "https://hahnbeeyeet.mintlify.app/mintlify-assets/:path+"
54+
"destination": "https://[SUBDOMAIN].mintlify.app/mintlify-assets/:path+"
5655
}
5756
]
5857
}
5958
```
59+
6060
</Step>
6161
</Steps>
6262

6363
<Note>
6464
For more information, you can also refer to Vercel's offical guide on
6565
rewrites: [Project Configuration:
6666
Rewrites](https://vercel.com/docs/projects/project-configuration#rewrites)
67-
</Note>
67+
</Note>

0 commit comments

Comments
 (0)