Skip to content

Commit c5107d4

Browse files
authored
fix(docs): update vercel generator to use subpath for root rewrite (#1535)
1 parent 1fd4e07 commit c5107d4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

snippets/es/vercel-json-generator.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const VercelJsonGenerator = () => {
1414
},
1515
{
1616
source: `/${subpath}`,
17-
destination: `https://${subdomain}.mintlify.app`
17+
destination: `https://${subdomain}.mintlify.app/${subpath}`
1818
},
1919
{
2020
source: `/${subpath}/llms.txt`,
@@ -101,4 +101,4 @@ export const VercelJsonGenerator = () => {
101101
</div>
102102
</div>
103103
)
104-
}
104+
}

snippets/fr/vercel-json-generator.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const VercelJsonGenerator = () => {
1414
},
1515
{
1616
source: `/${subpath}`,
17-
destination: `https://${subdomain}.mintlify.app`
17+
destination: `https://${subdomain}.mintlify.app/${subpath}`
1818
},
1919
{
2020
source: `/${subpath}/llms.txt`,
@@ -101,4 +101,4 @@ export const VercelJsonGenerator = () => {
101101
</div>
102102
</div>
103103
)
104-
}
104+
}

snippets/vercel-json-generator.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const VercelJsonGenerator = () => {
1414
},
1515
{
1616
source: `/${subpath}`,
17-
destination: `https://${subdomain}.mintlify.app`
17+
destination: `https://${subdomain}.mintlify.app/${subpath}`
1818
},
1919
{
2020
source: `/${subpath}/llms.txt`,

snippets/zh/vercel-json-generator.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const VercelJsonGenerator = () => {
1414
},
1515
{
1616
source: `/${subpath}`,
17-
destination: `https://${subdomain}.mintlify.app`
17+
destination: `https://${subdomain}.mintlify.app/${subpath}`
1818
},
1919
{
2020
source: `/${subpath}/llms.txt`,
@@ -101,4 +101,4 @@ export const VercelJsonGenerator = () => {
101101
</div>
102102
</div>
103103
)
104-
}
104+
}

0 commit comments

Comments
 (0)