---
title: "Deployment"
description: "End-to-end steps for building Beacon and shipping it to Vercel."
url: https://beacon-arodoni.vercel.app/deploy
---

# Deploy the documentation site

## Push the changes to GitHub

1. **Commit the changes**

   On your local machine, commit the page that you added, `my-page.mdx`, and the
   `content/nav.config.ts` file:

   ```bash
   git add .
   git commit -m "Add my page"
   ```

2. **Connect the remote repository**

   Connect your local repository to the new GitHub repository. Replace
   `<your-github-username>` with your GitHub username:

   ```bash
   git remote add origin https://github.com/<your-github-username>/my-docs.git
   ```

3. **Push to main**

   Push the changes to the `<your-branch>` branch:

   ```bash
   git push -u origin <your-branch>
   ```

   > **Tip**
   >
   > If the push fails with `Password authentication is not supported for Git operations`, GitHub rejected your account password.
   >
   > - If you've added an SSH key to your GitHub account, switch the remote to SSH by running `git remote set-url origin git@github.com:<your-github-username>/my-docs.git`, and then push again.
   >
   > - Otherwise, when Git prompts for a password, enter a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) instead.

## Deploy the site to Vercel

Deploy the site to Vercel to publish the new documentation. 

Vercel builds the site from the GitHub repository when you push to the `main` branch. 

Beacon picks up the files automatically and adds them to the client-side search index.

The build also adds the new pages to the sitemap.

1. **Deploy the site**

   In the Vercel dashboard, click **Deploy**. After the first deployment, every
   push to `main` triggers a new production deployment, and pushes to other
   branches create preview deployments.

2. **View the live page**

   Open `https://<your-vercel-domain>/my-page` to view the new page.

## Verify the deployment

- Load the deployed URL and confirm the sidebar, search (`Cmd/Ctrl+K`), and dark mode toggle work.

- Check `/sitemap.xml`, `/robots.txt`, and `/llms.txt` resolve and reference the correct production domain, not `example.com`.

- Open a page's Markdown version, such as `/quickstart.md` or `/index.md` for the home page, and confirm it loads as plain text.

- If the site is served from a subpath, click through a few internal links to confirm `BASE_PATH` was applied consistently to both pages and static assets. This doesn't apply when you deploy the site on Vercel.

See [Troubleshooting](https://beacon-arodoni.vercel.app/troubleshoot) for fixes to common build and deployment issues.
