Deploy a campaign to Vercel
Connect a Page Kit repository, verify a branch preview and configure a campaign domain on Vercel.
Import the campaign from GitHub
Choose a Vercel team on a plan that permits commercial campaigns. Vercel Hobby plan terms.
- In the team dashboard, choose Add New… → Project. Under Import Git Repository, connect GitHub if prompted. Select the GitHub account or organization that owns the campaign and click Import beside its repository. If the repo is missing, check the Vercel GitHub App’s repository access.
- Set Root Directory to the folder where the Page Kit build runs. Keep the repository root for a standard project. Choose Other for Framework Preset.
- In the build settings, enable the overrides for Build Command and Output Directory. Enter
npm run buildand_site, respectively. With the Other preset, Vercel otherwise servespublicif present or the project root. Keep the default install command for a standard npm project. If the repo has avercel.json, check itsbuildCommandandoutputDirectoryoverrides. - Select Deploy. Once the deployment is ready, open the campaign’s landing path on its assigned hostname and check that its images and checkout link load.
See the Vercel import screen and build settings.
Review a branch preview
Push a non-production branch and open the Preview deployment. If Deployment Protection is enabled, arrange reviewer access before running browser QA. Copy the hostname and complete the preview checks. Record the commit and tested campaign URL for the person approving release.
Connect the live hostname
Under project Settings → Domains, add the campaign hostname to Production. Apply the DNS record Vercel shows and wait for verification and HTTPS.
Define legacy paths in the project’s vercel.json redirects array. For example, an entry with source /products/old-name, destination /spring-offer/landing/ and permanent set to true returns a permanent redirect.
Release and rollback
Merging to the configured production branch publishes the new build. Follow the launch checks before directing ads to it. Use Instant Rollback to restore an eligible previous production deployment, or revert the source change and redeploy.
See the Vercel deployment documentation.
Deploy a campaign to Netlify
Connect a Page Kit repository, verify a branch preview and configure a campaign domain on Netlify.
Tracking overview
How ad and analytics tracking works in NEXT Campaigns, which platforms are supported, and which guide to follow for Google, Meta, Everflow, Triple Whale, TikTok and more.