APIToGoAPIToGo
Visit APIToGo on LinkedIn
  • Documentation
  • Components
  • Themes
Quickstart
Configuration
Writing
Concepts
OpenAPI
Authentication
Integrations
Guides
Deployment
    APIToGoCloudflare PagesGitHub PagesVercelUpload/FTP
Extending
powered by apitogo
Deployment

Vercel

Vercel offers multiple ways to deploy to its service, including via GitHub, and their CLI. You can read more about them in their Deployments Overview.

Prerequisites

To deploy to Vercel you will need:

  • A Vercel account (free)
  • A GitHub account (if deploying via GitHub)
  • The Vercel CLI

Deploying your APIToGo powered documentation using the Vercel CLI is what we will cover in this guide.

Install the CLI

To get started you need to install the CLI:

TerminalCode
npm i -g vercel

Setup a new project

Next, set up a new Vercel project in the root of your docs:

TerminalCode
vercel

This command will set up everything that is needed to deploy your documentation to Vercel.

It will ask some specific questions including the project name and where the code is located. You can answer however you like for these.

When you get to this step:

TerminalCode
No framework detected. Default Project Settings: - Build Command: `npm run vercel-build` or `npm run build` - Development Command: None - Install Command: `yarn install`, `pnpm install`, `npm install`, or `bun install` - Output Directory: `public` if it exists, or `.` ? Want to modify these settings? (y/N)

Answer Yes and select to modify the Output Directory.

By default Vercel looks for a directory named public, but the APIToGo build will be found in dist. Set the output directory like this:

TerminalCode
? What's your Output Directory? dist

After this is complete, your site will build and Vercel will respond with the URL for you to test it.

Clean URLs

You will almost certainly want to enable clean URLs for your site. This will remove the .html extension from your URLs. You can do this by adding a cleanUrls property to your vercel.json file. See the Vercel Configuration for more information.

Redirects

If you have redirects configured in your Zuplo configuration, you will need to also add those to your vercel.json file. See the Vercel Configuration for more information.

This is a current limitation. See #115.

Accurate Last Modified Dates

If you have enabled the showLastModified option, APIToGo automatically tracks the last modified date of your documentation pages using Git history. However, Vercel performs shallow clones by default (only fetching the last 10 commits), which can result in inaccurate "Last Modified" dates for pages that haven't been updated recently.

To ensure accurate last modified dates, add the VERCEL_DEEP_CLONE environment variable to your Vercel project:

  1. Go to your project settings in Vercel
  2. Navigate to "Environment Variables"
  3. Add a new variable: VERCEL_DEEP_CLONE=true
  4. Save and redeploy your site

This will enable full Git history during builds, ensuring all pages show their correct last modified dates. The impact on build time is minimal (typically 5-20 seconds on the first build), and subsequent builds benefit from caching.

Last modified on March 31, 2026
GitHub PagesUpload/FTP
On this page
  • Prerequisites
  • Install the CLI
  • Setup a new project
  • Accurate Last Modified Dates