Skip to content
← Back to Integrations Marketplace
Avatar

Sanity

Overview

Sanity.io is a real-time collaboration platform for structured content. With the Sanity.io Content Lake integration, you will be able to connect your Vercel Project to a real-time database that serves content however and whenever you need it.

With this integration, connect a new or existing Sanity.io Content Lake to your Vercel project -- the integration will handle the import of all needed environment variables to get your project up and running in no time.

Instructions

Adding the integration

After you have followed the prompts to add the Sanity.io integration to your Vercel project, head over to your project’s settings page to take a look at the environment variables that connect your Vercel project to your Sanity.io project:

Public Environment Variables

  • SANITY_API_PROJECT_ID
  • SANITY_STUDIO_API_PROJECT_ID
  • NEXT_PUBLIC_SANITY_PROJECT_ID
  • SANITY_API_DATASET
  • NEXT_PUBLIC_SANITY_DATASET
  • SANITY_STUDIO_API_DATASET

Private/Secret Environment Variables

  • SANITY_API_WRITE_TOKEN

For more information about these variables and to see an example implementation, take a look at the Vercel/Sanity.io integration documentation.

Adding Sanity Studio

To create a real-time collaborative editing environment for your content, add Sanity Studio to your workflow. Learn more on how to get started in the official Sanity.io documentation.

Get started with Vercel and Sanity.