Vercel Content Management System (CMS) Integrations allow you to connect your projects with CMS platforms, including Contentful, Sanity, Sitecore XM Cloud and more. These integrations provide a direct path to incorporating CMS into your applications, enabling you to build, deploy, and leverage CMS-powered features with minimal hassle.
You can use the following methods to integrate your CMS with Vercel:
- Environment variable import: Quickly setup your Vercel project with environment variables from your CMS
- Edit Mode through the Vercel Toolbar: Visualize content from your CMS within a Vercel deployments and edit directly in your CMS
- Content Link: Lets you visualize content models from your CMS within a Vercel deployments and edit directly in your CMS
- Deploy changes from CMS: Connect and deploy content from your CMS to your Vercel site
The most common way to setup a CMS with Vercel is by installing an integration through the Integrations Marketplace. This method allows you to quickly setup your Vercel project with environment variables from your CMS.
Once a CMS has been installed, and a project linked you can pull in environment variables from the CMS to your Vercel project using the Vercel CLI.
To pull in environment variables from your CMS to your Vercel project, you need to install the Vercel CLI. Run the following command in your terminal:
pnpm i -g vercel@latest
Navigate to the CMS integration you want to install into your project, and follow the steps to install the integration.
Once you've installed the CMS integration, you can pull in environment variables from the CMS to your Vercel project. In your terminal, run:
vercel env pull .env.development.local
See your installed CMSs documentation for next steps on how to use the integration.
To access Edit Mode:
- Ensure you're logged into the Vercel Toolbar with your Vercel account.
- Navigate to a page with editable content. The icon for Edit Mode will only appear when there are elements on the page matched to fields in the CMS. You may need to hover over the toolbar to see the icon.
- Select the pencil icon to activate Edit Mode. This will highlight the editable fields as Content Links in blue as you hover near them.
The following CMS integrations support Content Link:
See the Edit Mode documentation for information on setup and configuration.
Draft mode allows you to view unpublished content from your CMS within a Vercel preview, and works with Next.js and SvelteKit. See the Draft Mode documentation for information and setup and configuration.
This method is generally setup through webhooks or APIs that trigger a deployment when content is updated in the CMS. See your CMSs documentation for information on how to set this up.
Was this helpful?