File tree Expand file tree Collapse file tree 5 files changed +46
-7
lines changed Expand file tree Collapse file tree 5 files changed +46
-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 ` vercel.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+ ```
29+
30+ <Note >
31+ For more information, you can also refer to Vercel's offical guide on check
32+ out the [ Project Configuration:
33+ Rewrites] ( https://vercel.com/docs/projects/project-configuration#rewrites )
34+ </Note >
35+
36+ ## Reach out to Mintlify team
37+
38+ Once completing the Vercel setup, the Mintlify team will setup the
39+ subdirectory settings in your deployment. Reach out over
40+ [ email
] ( mailto:[email protected] ) .
Original file line number Diff line number Diff line change 161161 "group" : " Custom Subpaths" ,
162162 "pages" : [
163163 " advanced/subpath/cloudflare" ,
164- " advanced/subpath/route53-cloudfront"
164+ " advanced/subpath/route53-cloudfront" ,
165+ " advanced/subpath/vercel"
165166 ]
166167 },
167168 {
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 Pro plan or above] ( https://mintlify.com/pricing ) .
64</Info >
You can’t perform that action at this time.
0 commit comments