When to use this mode
- You already have per-PR preview deployments on Vercel, Netlify, Cloudflare Pages, or similar.
- You want faster turnaround — no QLane build means tests start sooner.
- You want to save sandbox credits — preview-mode sessions don’t consume sandbox compute.
- You want QLane to test the exact artifact your team reviews in the preview.
Set it up
From the project page, open Environments → New environment and choose Existing previews.- Provider — Vercel, Netlify, Cloudflare Pages, or “Other (URL template)” for everything else.
- Repository — the GitHub repo whose previews you’re testing.
- URL template (only when “Other”) — for example,
https://{branch}.preview.example.com. QLane fills{branch},{commit}, or{pr}from the PR. - Test credentials — same as Test a URL. Encrypted at rest.
- Linked repo — read-only code access for the agent. Defaults to the same repo.
How QLane discovers your preview
For first-party integrations, QLane reads the provider’sdeployment_status webhook — the same signal your team uses to find the preview in your PR. When the deployment goes “ready”, QLane starts the session.
For URL-template setups, QLane interpolates the template using PR metadata and polls the URL until it responds.
Triggering runs
Like other PR-bound modes, sessions fire automatically when a PR is opened or updated and PR testing is enabled for the project. You can also trigger a session manually for any commit on the dashboard.What you don’t get
Preview mode is browser-only. The agent has no shell, no logs, no database — just the running app at the URL.- No shell access. If you need the agent to inspect files or run commands, link a repo (read-only code access) or move to a sandbox mode.
- No log inspection. Server logs on Vercel/Netlify/etc. aren’t reachable from the sandbox.
- No deep-testing mode. The agent can’t add temporary logging and re-run; it can only drive the UI.
Common gotchas
- Preview takes ages to build. QLane waits patiently, but the user-visible turnaround is dominated by your provider’s build, not QLane. If preview builds are slow, consider a sandbox mode for the parts you need fast feedback on.
- Preview auth. If your preview requires a password (Vercel password-protected previews, Netlify password lock), the agent can’t get in. Either disable preview auth, or move to a sandbox mode where the URL is generated by QLane and not protected.
- Deployment URL changes. Some providers rotate URLs between commits. The webhook-driven flow handles this; URL templates only work if the pattern is stable.

