Preview deployments are available on Pro and Enterprise plans.
Create preview deployments
Preview deployments are created automatically through pull requests or manually from your dashboard.Automatic previews
Automatic previews are only created for pull requests targeting your deployment branch.


- You open a pull request targeting your deployment branch
- You push new commits to an existing pull request branch
- The pull request remains open (previews are deleted when PRs are closed or merged)
- You create a merge request targeting your deployment branch
- You push new commits to an existing merge request
- The merge request is updated or synchronized
Manual previews
You can manually create a preview for any branch.- Go to your dashboard.
- Select Previews.
- Select Create custom preview.
- Enter the name of the branch you want to preview.
- Select Create deployment.
- Testing experimental branches before opening a pull request
- Creating long-lived staging environments for specific features
- Sharing work-in-progress documentation with stakeholders
- Verifying fixes without opening a formal pull request
Redeploy a preview
Redeploy a preview to refresh content or retry after a failed deployment.- Select the preview from your dashboard.
- Select Redeploy.


Preview widget
The preview widget appears on preview deployments to help you navigate and review updated pages. The widget is a floating button in the bottom-right corner of your preview deployment.

- Click the widget to show all added, modified, or removed files in the preview.
- Click a file to view the changes on the corresponding page.
- Use the search bar to filter the list of changed files.
Restrict access to preview deployments
By default, preview deployments are publicly accessible to anyone with the URL. You can restrict access to authenticated members of your Mintlify organization.- Navigate to the Previews section in the Add-ons page of your dashboard.
- Click the Preview authentication toggle to enable or disable preview authentication.


- Protecting confidential product information before public release
- Restricting internal documentation previews to team members
- Complying with security policies that require authentication
- Preventing unauthorized access to unreleased features
Troubleshooting preview deployments
If your preview deployment fails, try these troubleshooting steps.- View the build logs: In your dashboard, go to Previews and click the failed preview. The deployment logs show errors that caused failures.
- Check your configuration:
- Invalid
docs.jsonsyntax - Missing or incorrect file paths referenced in your navigation
- Invalid frontmatter in MDX files
- Broken image links or missing image files
- Invalid
- Validate locally: Run
mint devlocally to catch build errors before pushing to the repository. - Check recent changes: Review the most recent commits in your branch to identify what changes caused the build to fail.
Common preview issues
Preview not created automatically Verify that:- The GitHub App is installed and has access to your repository (GitHub only)
- Webhooks are configured correctly (GitLab only)
- Your pull request targets the correct deployment branch
- The branch name doesn’t contain invalid characters
- Manually trigger a redeploy from your dashboard
- Push a new commit to the branch to trigger a rebuild
- Check that your latest commits were successfully pushed to the remote repository
- Reducing the number of pages or assets
- Optimizing image sizes
- Simplifying complex navigation structures
- Contacting support if build times consistently exceed 10 minutes