Vercel
Vard works with Vercel out of the box. This guide covers the recommended setup.
Deploy Hook
The simplest way to trigger rebuilds when your client publishes is via a Vercel Deploy Hook.
- In your Vercel project, go to Settings → Git → Deploy Hooks
- Create a hook named “Vard publish” for your production branch
- Copy the hook URL
- In your Vard workspace, go to Settings → Deployment → Deploy Hook URL and paste it
When your client clicks Publish, Vard calls this URL and Vercel triggers a new build.
Environment variables
Add VARD_API_KEY in your Vercel project’s environment variables:
- Settings → Environment Variables
- Add
VARD_API_KEYwith your workspace API key - Enable it for Production and optionally Preview
ISR (recommended)
For most sites, ISR with a short revalidation interval is the best balance of performance and freshness:
import { createVardNext } from "@vard-app/sdk/next";
export const vard = createVardNext({
apiKey: process.env.VARD_API_KEY,
revalidate: 60,
});Content changes will appear within 60 seconds of publishing, without a full rebuild.
On-demand revalidation
For instant content updates without a rebuild, set up a revalidation webhook. See Cache Revalidation.
Preview environments
For Vercel Preview deployments (e.g. pull request previews), you can use a separate schema version to avoid conflicts with production content. See Schema Versioning.