
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI understand your frustration with the Netlify deployment! The good news is that the project info displayed in your Sanity Studio dashboard (like the repository slug) is just for convenience and shouldn't affect your actual deployment. Let me help you troubleshoot both issues.
The project info widget in Sanity Studio is purely informational - it displays metadata about your project but doesn't control how your site deploys. If you used one of Sanity's starter templates that includes a dashboardConfig.js file (common in older Sanity v2 projects), this is where that repository information is stored.
If you want to update it for consistency, you can:
dashboardConfig.js file in your studio folder (usually in the root or a config directory)projectInfoWidget configuration and update the repository slug to match your new GitHub URL{
name: 'project-info',
options: {
data: [
{
title: 'GitHub repo',
value: 'your-username/your-repo-name',
category: 'Code'
}
]
}
}However, this won't fix your deployment issue - it's just cosmetic.
The real issue is your frontend build failing on Netlify. Here are the most common causes with Gatsby + Sanity deployments:
1. Environment Variables Missing Make sure you've added your Sanity project ID and dataset name to Netlify's environment variables:
SANITY_PROJECT_ID and SANITY_DATASET (usually "production")SANITY_TOKEN if your content requires authentication2. Build Command Issues
gatsby build or npm run build).nvmrc file or in Netlify's build settings3. Check the Build Logs The actual error message in Netlify's build logs will tell you exactly what's failing. Look for:
npm install or yarn install failures)4. Repository URL Mismatch Since you changed your GitHub repo URL, make sure Netlify is pointing to the correct repository:
5. CORS Configuration If you're getting API errors, you may need to add your Netlify URL to your Sanity project's CORS origins:
.netlify.app URL and any custom domain)The specific error message in your Netlify build logs will point you to the exact issue. If you share that error here, the community can give you more targeted help!
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