Skip to content

Commit 81a6833

Browse files
committed
init
1 parent de7d48e commit 81a6833

File tree

5 files changed

+34
-7
lines changed

5 files changed

+34
-7
lines changed

advanced/subpath/cloudflare.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Host documentation at a /docs subpath using Cloudflare Workers"
55

66
import SubpathGatingSnippet from "/snippets/custom-subpath-gating.mdx";
77

8-
<SubpathGatingSnippet />
8+
<SubpathGatingSnippet platform="Cloudflare" />
99

1010
## Create Cloudflare Worker
1111

advanced/subpath/route53-cloudfront.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Host documentation at a /docs subdirectory using AWS services"
55

66
import SubpathGatingSnippet from "/snippets/custom-subpath-gating.mdx";
77

8-
<SubpathGatingSnippet />
8+
<SubpathGatingSnippet platform="AWS Services" />
99

1010
## Create Cloudfront Distribution
1111

advanced/subpath/vercel.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "Vercel"
3+
description: "Host documentation at a /docs subpath using Vercel"
4+
---
5+
6+
import SubpathGatingSnippet from "/snippets/custom-subpath-gating.mdx";
7+
8+
<SubpathGatingSnippet platform="Vercel" />
9+
10+
## Mint.json Configuration
11+
12+
To host your documentation at a custom subpath using Vercel, you need to add the
13+
following configuration to your `mint.json` file.
14+
15+
```json
16+
{
17+
"rewrites": [
18+
{
19+
"source": "/docs",
20+
"destination": "https://[subdomain].mintlify.dev/docs"
21+
},
22+
{
23+
"source": "/docs/:match*",
24+
"destination": "https://[subdomain].mintlify.dev/docs/:match*"
25+
}
26+
]
27+
}
28+
```

mint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@
155155
"group": "Custom Subpaths",
156156
"pages": [
157157
"advanced/subpath/cloudflare",
158-
"advanced/subpath/route53-cloudfront"
158+
"advanced/subpath/route53-cloudfront",
159+
"advanced/subpath/vercel"
159160
]
160161
},
161162
{

snippets/custom-subpath-gating.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<Info>
2-
3-
**Prerequisite**: Your primary domain (company.com) is hosted on Cloudflare
4-
and you are on the [Mintlify startup plan or
5-
above](https://mintlify.com/pricing).
2+
**Prerequisite**: Your primary domain (company.com) is hosted on {platform}
3+
and you are on the [Mintlify startup plan or above](https://mintlify.com/pricing).
64
</Info>

0 commit comments

Comments
 (0)