
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeBased on your schema code, the issue is almost certainly that you haven't deployed your Studio changes to your hosted environment. When you see "This field is not defined in the schema" in your live Studio but it works locally, it means your local schema differs from what's deployed.
The sanity deploy command you ran deploys your Studio application (the interface itself), but it doesn't necessarily update the schema that other Sanity services see. However, for basic Studio functionality, deploying the Studio should be sufficient.
Here are the most likely causes and solutions:
1. Cache Issues After deploying, try these steps:
2. Verify Your Deployment Make sure your deployment actually included the schema changes:
blockContent.js file is properly imported in your schemasanity deploy to be certain3. Check for Multiple Schema Definitions
If you have the link annotation defined in multiple places in your schema, make sure they're all consistent. The deployed version might be picking up an older definition.
4. Schema Deployment (if using Canvas, Dashboard, or Agent Actions) If you're using newer Sanity features like Canvas or Agent Actions, you may also need to run:
sanity schema deployThis is different from sanity deploy and makes your schema available to other Sanity apps beyond Studio. However, this typically isn't required for basic Studio functionality.
5. Verify Your Schema Syntax
Your schema looks correct, but double-check that it's properly exported and imported into your main schema configuration file (usually schema.js or within your sanity.config.js).
The most common fix is simply a hard refresh after deployment, as browsers aggressively cache Studio assets. If that doesn't work, try redeploying and accessing from a private browsing window to rule out caching entirely.
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