Joint session with Vercel: How to build intelligent storefronts (May 15th)

How to edit project info in Sanity Studio or fix Netlify deployment issues?

30 repliesLast updated: Nov 30, 2025

Hello everyone! I have been building my portfolio with Sanity and Gatsby. I tried to deploy it to Netlify but the front-end keeps failing - I dont know why. I remember that when i first created the project the github repository slug an extra space which was interpreted into a dash ” - ” so I modified the url on github and on Netlify but I can’t modify it on Sanity studio as I am assuming this might be the issue.Does anyone know how to deploy the front-end to Netlify or manually edit the project info?
AI Update

I 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.

About the Dashboard Project Info

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:

{
  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.

Troubleshooting Your Netlify Deployment

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:

2. Build Command Issues

3. Check the Build Logs The actual error message in Netlify's build logs will tell you exactly what's failing. Look for:

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:

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!

Show original thread
30 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

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.

Related contributions