mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
bafc498391
* Fix broken link * Han's changes
31 lines
705 B
Plaintext
31 lines
705 B
Plaintext
---
|
|
title: "Vercel"
|
|
description: "Host documentation at a /docs subpath using Vercel"
|
|
---
|
|
|
|
## vercel.json Configuration
|
|
|
|
To host your documentation at a custom subpath using Vercel, you need to add the
|
|
following configuration to your `vercel.json` file.
|
|
|
|
```json
|
|
{
|
|
"rewrites": [
|
|
{
|
|
"source": "/docs",
|
|
"destination": "https://[subdomain].mintlify.dev/docs"
|
|
},
|
|
{
|
|
"source": "/docs/:match*",
|
|
"destination": "https://[subdomain].mintlify.dev/docs/:match*"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
<Note>
|
|
For more information, you can also refer to Vercel's offical guide on
|
|
rewrites: [Project Configuration:
|
|
Rewrites](https://vercel.com/docs/projects/project-configuration#rewrites)
|
|
</Note>
|