👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

How to allow someone access to the CMS to edit a portfolio on Sanity.io

3 replies
Last updated: Jul 7, 2023
I built a portfolio, it's up and running and I'm happy with it. Now, i want to be able to allow someone else access to the CMS to edit, change/upload images, etc. I've sent the invite, his role is "editor", he accepted, but we don't see how/where he can make edits/changes. help? I'm a newbie, so be gentle?
Jul 7, 2023, 3:23 AM
Hi
user F
! You’ve been working on creating what’s known as the Sanity Studio, which has code that includes schemas and potentially things like components. Most likely, you’ve worked on that on your local system, which operates in development at localhost:3333 by default. Your editor will need to access that Studio as well, but wouldn’t access it via your computer, so there are two options:
1. If your colleague is also a developer, one approach is to share the codebase (e.g., via GitHub), which they can clone and run locally as well. However, this is not ideal for someone operating as an editor, which brings us to
2. You can deploy your Studio so it’s globally accessible (“globally” here means from anywhere, but the user must still be authenticated). The Studio can be hosted anywhere (e.g., Vercel, Netlify, Geocities, or your own hosting service), but we also offer Studio hosting (no cost) to which you can deploy the Studio. From your terminal, you can run
sanity deploy
. You’ll be prompted to select a hostname, which must be unique. After that, the Studio is accessible at
https://<hostname>.sanity.studio
. Your editor can log in there. Any time you make changes to your schemas that you want to make available to your editor, you can run
sanity deploy
again and the Studio will be built and deployed.We recommend keeping your Studio codebase version controlled and/or backed up, as if you were to lose the Studio codebase it cannot be inferred from the deployed copy.
Jul 7, 2023, 4:16 AM
thanks sooo much. I JUST got the studio up and running. it was fast and easy.
Jul 7, 2023, 4:17 AM
Great to hear!
Jul 7, 2023, 4:18 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?