Prerequisite: Your primary domain (company.com) is hosted on and you are on the Mintlify Pro plan or above.

Configuration

Add the following to your vercel.json file to host your documentation at a /docs subpath:

{
  "rewrites": [
    {
      "source": "/docs",
      "destination": "https://[subdomain].mintlify.dev/docs"
    },
    {
      "source": "/docs/:match*",
      "destination": "https://[subdomain].mintlify.dev/docs/:match*"
    }
  ]
}

For additional configuration options, see Vercel’s Rewrites documentation.

Was this page helpful?