File tree Expand file tree Collapse file tree 5 files changed +34
-7
lines changed Expand file tree Collapse file tree 5 files changed +34
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description: "Host documentation at a /docs subpath using Cloudflare Workers"
55
66import SubpathGatingSnippet from " /snippets/custom-subpath-gating.mdx" ;
77
8- <SubpathGatingSnippet />
8+ <SubpathGatingSnippet platform = " Cloudflare " />
99
1010## Create Cloudflare Worker
1111
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description: "Host documentation at a /docs subdirectory using AWS services"
55
66import SubpathGatingSnippet from " /snippets/custom-subpath-gating.mdx" ;
77
8- <SubpathGatingSnippet />
8+ <SubpathGatingSnippet platform = " AWS Services " />
99
1010## Create Cloudfront Distribution
1111
Original file line number Diff line number Diff line change 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+ ```
Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments