
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis is a common issue that usually comes down to case-sensitivity differences between your local environment and Vercel's build environment. Here's what's likely happening:
The Root Cause:
siteSettings but the actual file is named SiteSettings.js (or vice versa), it works locally but fails on VercelHow to Fix It:
Check your import statement casing - Look at where you're importing the siteSettings schema file. The import path must match the actual filename exactly, including capitalization:
// If your file is siteSettings.js
import siteSettings from './siteSettings'
// NOT
import siteSettings from './SiteSettings'Check the actual filename - Verify the exact casing of your file in your file explorer or with ls in terminal. Don't trust your IDE's display.
Check the folder path casing too - The same case-sensitivity applies to folder names in the import path.
Verify your schema index file - If you're exporting from an index file (like schemas/index.js), make sure the import there also matches exactly:
export {default as siteSettings} from './siteSettings'Quick Debug Steps:
git ls-files | grep -i sitesettings to see exactly how Git has tracked the filenameschemas/index.js (or wherever you're aggregating schemas) for the import statementSince you mentioned it works locally but not on Vercel, and you've already tried reinstalling dependencies, case-sensitivity is almost certainly the culprit. Even a single character difference in capitalization will cause this exact error pattern.
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