Deploy

Preview deployments

Get a unique live URL for each pull request so reviewers can see docs changes before they merge.

Preview deployments require a Begin or Value plan.

Preview deployments let you see how changes to your docs look before they reach production. Each preview gets a shareable URL that updates when you push new commits.

https://{subdomain}-p-{slug}.veludocs.com

{subdomain} is your production docs subdomain. {slug} is unique to that preview. Custom domains apply to production only.

Preview deployments require docs-as-code with the Velu GitHub App installed. Editor-only (managed) sites have no Git branches, so they cannot create previews.

Preview URLs are publicly viewable. Share a link with anyone who needs to review the change. Previews are isolated from production: they do not overwrite your live site, search index, or analytics.

Create preview deployments

Create previews automatically from pull requests, or manually from your dashboard.

Automatic previews

Automatic previews are created only for pull requests that target your deployment branch (usually main).

When you open a pull request, the Velu GitHub App comments that a preview is deploying. It posts a second comment with the live URL after the build succeeds. The preview rebuilds each time you push to the branch.

The bot posts a new comment for each status so GitHub sends a notification. The live URL is included only after the build succeeds.

Fork pull requests

Pull requests from a fork do not generate preview deployments. The Velu GitHub App can only build repositories where it is installed, so it cannot read a fork.

A maintainer with write access can preview fork changes by pushing the contributor's branch to the main repository, then opening a pull request from that branch.

Manual previews

You can create a preview for any existing branch.

Open Previews

In the dashboard, go to Home and click the Previews tab.

Create a custom preview

Click Create custom preview, enter the branch name, and click Create preview.

GitHub comments

On pull requests, Velu posts comments as the build moves through Deploying, Successful, and Failed.

StatusWhat the comment includes
DeployingBranch name and a note that the live URL will arrive when the build finishes
SuccessfulThe https://{subdomain}-p-{slug}.veludocs.com URL
FailedA note to open the Previews tab in the dashboard to read logs and retry

Pushing another commit rebuilds the preview. A successful rebuild posts a new comment with the same URL.

Redeploy a preview

Redeploy a preview to refresh it against the latest commit, or to retry after a failed build.

Find the preview

In the dashboard, open the Previews tab.

Redeploy

Click Redeploy on the preview you want to refresh.

Preview lifetime

A preview stays live while its source branch exists, and it updates on every push.

  • Automatic previews: remain after the pull request is merged or closed, as long as the branch still exists. Deleting the branch removes the preview.
  • Manual previews: stay live until you delete them or delete the branch.
  • Delete a preview: on the Previews tab, click Delete to remove it immediately.

Preview URLs are unique per preview. If you delete a preview and later recreate one for the same branch, Velu may issue a new URL.

Troubleshooting preview deployments

If a preview build fails:

  • Open the Previews tab in the dashboard and inspect the failed row. Redeploy from there after you fix the cause.
  • Check velu.json at the docs root: invalid JSON, navigation paths that do not exist, or schema errors will fail the build.
  • Check MDX frontmatter and image paths in the latest commits on the branch.
  • Validate locally with npx @veluai/velu dev and npx @veluai/velu lint before you push.

The GitHub comment for a failed build does not include a URL. Use the dashboard to retry rather than pushing an empty commit.

Publishing

What triggers a production build, and how to read deployment history.

Go to production
Custom domains

Custom domains apply to your live site, not to preview URLs.

Set up a domain
Velu dashboard

Create, redeploy, and delete previews from Home.

Open dashboard
Was this page helpful?