
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis error means your Sanity Studio configuration is missing the projectId value, which is required to connect to your Sanity project. Here's how to fix it:
Find your Project ID: Log into sanity.io/manage and locate your project ID in the dashboard
Add it to your configuration: Open your Sanity config file (usually sanity.config.ts or sanity.config.js) and make sure it includes your projectId:
import {defineConfig} from 'sanity'
export default defineConfig({
projectId: 'your-project-id-here', // ← Add this
dataset: 'production',
// ... rest of your config
})For Next.js or other frameworks, you might be using environment variables. Make sure:
.env.local file has the correct variables:NEXT_PUBLIC_SANITY_PROJECT_ID=your-project-id-here
NEXT_PUBLIC_SANITY_DATASET=productionNote: In Next.js, the NEXT_PUBLIC_ prefix is required for client-side access.
import {defineConfig} from 'sanity'
export default defineConfig({
projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,
dataset: process.env.NEXT_PUBLIC_SANITY_DATASET,
// ... rest of your config
})projectId to find all instances.Once you add the correct projectId to your configuration, the error should disappear and your Studio will load properly!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store