Deployment - Vercel

Vercel is a cloud platform for static sites and Serverless Functions. It is a great option for deploying Magidoc websites.

Magidoc configuration


In your Magidoc configuration file, you need to add a static assets folder.


Static assets


Inside the static asset directory, add a vercel.json file with the following content:


Your directory structure should look like this.


Finally, run magidoc generate , and navigate to the output directory of Magidoc. From there, execute vercel deploy to deploy your website. There are other ways you can deploy Magidoc onto Vercel, but this is the simplest way.