
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI understand how frustrating that is! When sanity deploy stops after you choose a hostname and press Enter, this is usually related to a few common issues. Let me walk you through the most likely causes and solutions:
The most common reason for the deployment hanging after hostname selection is authentication problems. The CLI might be failing silently because it can't verify your credentials. Try running:
sanity loginThis will refresh your authentication token. Then try sanity deploy again. If you're deploying from a CI/CD environment, make sure you have a valid SANITY_AUTH_TOKEN environment variable set, as mentioned in the Azure DevOps deployment guide.
An outdated CLI version can cause unexpected behavior during deployment. Update to the latest version:
npm install -g @sanity/cli@latest
# or if using the project locally
npm install @sanity/cli@latestAfter updating, try deploying again.
Sometimes terminal input buffering or encoding issues can cause the Enter key to not register properly:
The deployment might be hanging on network requests after you press Enter. Check if:
Try running the deploy command with verbose output to see if there are network errors:
sanity deploy --verboseSometimes the Studio build itself fails silently. Before deploying, try building locally first:
sanity buildThis will show you any build errors that might be causing the deployment to fail.
Make sure your sanity.config.ts (or .js) file is properly configured with your project ID and dataset. Missing or incorrect configuration can cause deployment issues.
If none of the above work:
.sanity folder in your project and try againIf you're still stuck, the Sanity Slack community is very active and responsive to deployment issues. You can also check GitHub discussions for similar issues. When asking for help, include:
sanity --version)node --version)sanity deploy --verboseThe sanity deploy command builds and deploys your Studio to Sanity's hosted environment at [your-hostname].sanity.studio, and as explained in the deployment documentation, it also deploys your schema for use with other Sanity platform features. When it works correctly, you should see build progress and then deployment confirmation.
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