Skip to content
TurnIntoCMS

Using preview deployments for client content review

By Yash Garg · · 7 min read

To give clients a reliable staging experience, route review traffic to a dedicated, persistent branch such as client-review rather than sharing unique commit URLs. A stable branch alias gives your client a single address to bookmark, ensuring they always see the latest revisions as you push fixes. Modern hosting platforms trigger automated builds on every push to verify updates, as outlined in Vercel's Git deployment documentation.

The main issue with sending clients raw commit URLs is volatility. Every time you push a minor fix or styling adjustment to your branch, the host generates a new alphanumeric subdomain. If your client bookmarks the link you sent on Monday morning, they will look at an outdated snapshot by Tuesday afternoon. They may report bugs you already resolved or approve copy you have already replaced.

Instead, assign a single branch alias. Direct your client to a predictable URL like client-review.yourdomain.com or your platform's permanent branch address. You can manage underlying updates using Git pull requests. According to GitHub's pull request documentation, pull requests let you propose changes, review code with collaborators, and gather feedback before merging updates into the production branch. To keep this branch safe during active review cycles, note that branch protection rules prevent force pushes and deletions by default, as detailed in GitHub's branch protection documentation.

Lock down preview access without forcing client logins

Never ask non-technical clients to create GitHub or cloud hosting accounts just to review copy or approve a new layout. Adding account registration friction stalls the review cycle and leads to confusion over forgotten passwords.

Hosting platforms provide several ways to restrict access to preview environments while keeping the client experience simple. According to Vercel's password protection documentation, password protection on Pro plans costs 20 dollars per project per month, presenting visitors with a clean password entry screen. Netlify provides comparable settings; as noted in Netlify's password protection guide, teams on Pro tiers can restrict visitor access under Project Visibility settings to protect site previews with a shared password.

For developers working on free tiers or tight project budgets, you can implement protection directly in edge middleware without paying platform add-on fees. By inspecting server environment variables, your middleware can prompt visitors for standard HTTP Basic Authentication whenever the deployment environment is preview rather than production. This prompts the client for a single username and password without touching code hosting accounts.

Avoid search engine indexing traps on staging domains

One of the costliest staging mistakes is letting search engine crawlers index your preview website. If Google indexes a staging site, unreleased marketing copy, unannounced product pricing, and duplicate pages can appear in public search results.

When you use default preview domains generated by your hosting provider, platforms protect you out of the box.

However, danger arises when you attach a custom subdomain. If you point a branded domain like staging.clientbrand.com to your review branch, search bots will treat it as a regular website unless you add protection manually.

The table below outlines how search indexing behaves across common deployment configurations:

Domain TypeDefault Platform BehaviorSearch Crawler RiskAction Required
Platform preview URL (for example, *.vercel.app)Automatically sends X-Robots-Tag: noindexLowNone; default headers block crawling
Custom staging subdomain (for example, preview.site.com)Treated as standard production domainHighManually inject noindex headers via host config
Password-protected staging URLReturns 401 Unauthorized or login wallNoneBots cannot access content past the login screen

Isolate staging credentials and test data

A preview deployment should behave like production for layout testing, but it must never interact with live data or production integrations. Sharing credentials across environments leads to corrupted analytics, polluted client customer lists, and accidental notifications sent to real users.

Hosting dashboards allow you to configure environment variables scoped specifically to preview branches. As documented in Vercel's environments guide, you can restrict API secrets to preview environments so staging builds run on distinct keys from production.

Always establish strict separation for these three critical services before inviting clients:

  1. Payment processors: Configure Stripe test keys starting with pk_test instead of live production keys. This lets clients run end-to-end checkout simulations without charging credit cards or polluting financial ledgers.
  2. Notification systems and contact forms: Route form submissions on staging to a simulated email inbox such as Mailtrap, or append a visible test prefix to message subject lines. This prevents your client's live sales department from fielding test submissions as real leads.
  3. Application databases: Connect preview deployments to isolated database branches or test schemas. When clients test user signups or delete records during review, live production data remains untouched.

Agencies establishing standardized staging workflows can follow our structured guide for agency client handoffs to streamline branch permissions and delivery checkpoints.

Distinguish preview deployments from CMS draft mode

Developers frequently confuse preview deployments with CMS draft mode, but they serve two distinct purposes during website handoff.

A preview deployment generates an isolated, runnable build of your codebase from a Git branch to test framework updates, new components, CSS adjustments, and static layout changes. In contrast, CMS draft mode is a dynamic runtime mechanism inside frameworks like Next.js designed specifically for headless CMS workflows. Enabling draft mode bypasses static generation to fetch unpublished, live draft records directly from a content API without requiring a full code rebuild.

If you maintain a Next.js App Router site with a headless CMS, note that Next.js 15 introduced a breaking API update where draftMode is an asynchronous function. As detailed in the DatoCMS Draft Mode guide, developers must await draftMode before calling enable or disable. Furthermore, avoid running draft mode route handlers on the Edge Runtime because the Edge Runtime cannot always handle the underlying signed bypass cookies correctly.

If your website does not use an external headless CMS and keeps copy inside JSX or local data files, setting up draft mode route handlers and external API schemas introduces unnecessary overhead. For code-based sites, tools like TurnIntoCMS let clients click text, links, and pictures directly in their browser and save changes back to your chosen Git branch as clean commits. TurnIntoCMS operates directly on your repository files, giving non-technical clients visual editing convenience without the infrastructure complexity of a headless database. Note that TurnIntoCMS works on code-stored content rather than external runtime databases, making it a fit for brochure sites and marketing pages while excluding projects requiring runtime content APIs or scheduled publishing.

Collect visual feedback with collaborative toolbars

Email threads and spreadsheet issue trackers break down quickly during design reviews. A client writes to move a button up without specifying the viewport size, screen resolution, or exact page route.

Modern deployment previews solve this using integrated visual collaboration tools. Platforms like Netlify provide an on-page reviewer interface; as explained in Netlify's collaborative deploy previews guide, the Netlify Drawer allows reviewers to capture browser screenshots, record short video clips, and attach notes to their feedback. Reviewers can highlight issues directly on the staging layout while comments sync back to your Git pull request threads.

Before handing a preview deployment over to your client, run through this staging verification checklist:

  • Stable branch URL configured (for example, client-review.domain.com rather than an ephemeral commit hash)
  • Access protection enabled using a shared project password or basic authentication
  • Search indexing blocked by verifying the X-Robots-Tag: noindex header on custom staging subdomains
  • Sandbox environment variables verified for payment processors, database connections, and transactional email
  • Visual feedback toolbar enabled and connected to the repository pull request

For a broader handoff process covering repository transfer, DNS transition, and post-launch maintenance, review our agency website handoff checklist.

FAQ

Will Google index my preview deployment URLs?

Default preview domains provided by hosting platforms automatically include an X-Robots-Tag: noindex header to stop search engines from indexing pages. However, if you attach a custom domain like preview.clientdomain.com to your review branch, you must manually configure noindex headers to prevent crawlers from indexing duplicate staging content.

How can clients view a preview site without making an account?

You can protect the preview deployment using a single shared password through your hosting dashboard, or generate a shareable bypass link that grants access via a secure URL token. Alternatively, you can add an edge middleware check that prompts reviewers for basic HTTP authentication credentials without requiring platform logins.

What is the difference between preview deployments and Next.js Draft Mode?

Preview deployments rebuild the entire project from a Git branch to test code, component layout, and dependency changes in an isolated staging environment. Next.js Draft Mode is a runtime feature that bypasses static page caches using secure session cookies, allowing clients to preview unpublished copy from an external headless CMS without rebuilding the site.

Can clients leave visual feedback directly on preview deployments?

Yes, hosting platforms offer built-in browser overlays such as Netlify Drawer. Clients can click on page elements, leave pinned comments, and capture viewport screenshots, which automatically sync back to your Git pull request threads.

Sources

  1. Environments (vercel.com, checked November 18, 2026)
  2. Password Protection (vercel.com, checked November 18, 2026)
  3. How to password-protect a Netlify site or deploy previews (netlify.com, checked November 18, 2026)
  4. How to Use Collaborative Deploy Previews with Netlify (netlify.com, checked November 18, 2026)
  5. Setting up Next.js Draft Mode (datocms.com, checked November 18, 2026)
  6. Deploying Git Repositories with Vercel (vercel.com, checked November 18, 2026)
  7. About protected branches (docs.github.com, checked November 18, 2026)
  8. Pull requests (docs.github.com, checked November 18, 2026)

Related

More from the blog

Let your clients edit the site you coded

One website free. Then $1 each, paid once.

Get started free