
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis is a classic CORS (Cross-Origin Resource Sharing) issue that happens when deploying to Vercel. Your navigation works locally because localhost is likely already in your allowed CORS origins, but your Vercel domain isn't.
When you deploy to Vercel, your site gets a new domain (like yoursite.vercel.app), and Sanity blocks requests from domains that aren't explicitly allowed in your project settings. This is why you're seeing the network error when trying to fetch your navigation data.
Here's how to fix it:
https://yoursite.vercel.app)Important for Vercel preview deployments:
If you're also deploying preview branches (like yoursite-git-branch-name.vercel.app), you have two options:
https://*.vercel.app (this allows all your Vercel preview deployments)After adding the origins:
The changes take effect immediately—just refresh your deployed site and your burger menu should populate with the navigation data.
This is one of the most common deployment issues with Sanity + Vercel, and once you've added your domains to the CORS origins list, everything should work exactly like it does in development. The Sanity CORS documentation has more details if you need additional configuration options.
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