documentation/guides/docs/deployment/preview-deployments.md
Preview deployments allow you to see how your documentation changes will look before merging them into your main branch. When you open a pull request, Docs automatically creates a preview deployment and can post a comment with a link to preview your changes.
Configure preview deployments and pull request comments in the Scalar Dashboard under your project settings. You can:
When enabled in the Dashboard, Scalar posts a comment on each pull request with a direct link to the preview deployment:
If your Docs project is not connected to your GitHub repository, use the CLI publish in preview mode (e.g. for pull requests) without going live:
npx @scalar/cli project publish --slug your-docs --preview
Looking for more control over your deployment process?