Skip to content

Set up Vercel for the preview check

Set up Vercel so A11yRemedy can check each pull request on its preview: deployment_status events, the protection bypass secret and the production address.

Turn on deployment_status events

  1. In the Vercel project, go to Settings, then Git.
  2. Turn on deployment_status Events.

Without it, GitHub never hears that the preview is ready, so the pull request stays a draft. If a pull request is already open, redeploy its preview (Deployments, the preview, Redeploy) after turning it on.

Protected previews

If Deployment Protection is on for previews:

  1. In Vercel, go to Settings, then Deployment Protection.
  2. Under Protection Bypass for Automation, create a secret.
  3. In A11yRemedy, paste it as the Vercel protection bypass secret on the GitHub card.

The secret is stored encrypted, never shown again, and sent only to the preview’s vercel.app address. Without it, a protected preview can’t be loaded and every fix fails the check.

The production address

The site’s address in A11yRemedy must be the production address. After the merge, the production deployment of the merge commit starts the re-check of the live pages.

Warning

If Vercel Authentication covers all deployments, production redirects to Vercel’s sign-in page and can’t be scanned. Protect previews only.

Last updated