Take over an abandoned Sanity project: who can finish it

By Nayan Kyada · · 7 min read

Part of The Sanity + Next.js Guide

If you are trying to take over an abandoned Sanity project, you are probably holding a half-finished site, a Studio your editors can barely use, and a developer who stopped replying. This is fixable far more often than owners expect. The work follows a predictable order: get access, read the code, assess the risk, write a plan, then stabilise.

This post is the Sanity-specific version of that process. It covers what a takeover looks like, what it should and should not cost you in surprises, and what to ask the person you hire. If your problem is more general Next.js code, read take over an existing Next.js project after your developer disappears alongside this one.

Why abandoned Sanity projects are different

A Sanity build has two halves that can rot independently. There is the Next.js frontend that renders pages, and there is the Sanity project: the schema, the Studio, the dataset with your actual content, the API tokens, the webhooks and the project membership.

That split is good news for you. Your content lives in the dataset, not in the code. Even if the frontend is a mess, the content is usually safe, provided you control the Sanity project. It also means a takeover has two separate checks: who owns the Sanity project, and what state is the code in.

Step 1: Recover access before anything else

No developer should read a line of code until you know who controls the accounts. The usual set to account for:

  • The Sanity project and organisation: are you an administrator, or is everything under the ex-developer's personal account?
  • The code repository: GitHub, GitLab or Bitbucket, and whether you are an owner of it.
  • The hosting account, usually Vercel, and the connected domain.
  • The domain registrar and DNS.
  • Third-party services such as Algolia, SendGrid, Mux or analytics.

If the Sanity project is under a personal account, there is a recovery path. I wrote it up in locked out of your Sanity project: recover access from an ex-developer. The short version: gather proof that the business owns the project, such as invoices, the domain and the billing email, and contact Sanity support. Do this early, because it is the only step with a waiting period you cannot control.

Ask for read access to the repository first, even if full ownership takes time. A developer can do most of the review with read access and a copy of the environment variable names.

Step 2: Review the code and the Studio

With access, a Sanity-aware review looks at specific things. A generic code review misses most of them.

Schema health. Are document types named sensibly? Are there fields nobody uses? Is the page builder a tidy set of blocks or an unbounded pile? Two posts cover what bad looks like: Sanity page builder out of control and Sanity Studio bloat and unused document types.

Client configuration. The Sanity client setup tells you a lot about how careful the previous developer was. Wrong perspective or CDN settings cause stale or draft content on the live site.

// src/sanity/lib/client.ts
import { createClient } from 'next-sanity'
 
export const client = createClient({
  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!,
  dataset: process.env.NEXT_PUBLIC_SANITY_DATASET!,
  apiVersion: '2025-01-01',
  useCdn: true,
  perspective: 'published',
})

If you see a hard-coded token in this file, or useCdn: false everywhere, that is a finding. See Sanity client misconfigured in Next.js for the full list.

Secrets. Tokens committed to the repo or exposed to the browser need rotating immediately. The check is in Sanity API token exposed in a Next.js site.

Versions. Is the Studio on an old major, and is the frontend on the Pages Router or an old Next.js? The current majors are Next.js 16 and Sanity Studio v6, and the upgrade path from an old Studio is covered in Sanity Studio v2 to v3 upgrade and on to v6.

The editor view. Open the Studio as an editor would. Can you find a page, edit it and publish? Does the live site update? Many abandoned projects fail right here, because webhooks or revalidation were never finished.

Step 3: Assess the risk

After the review, every finding gets sorted by what happens if you ignore it. I use three buckets.

Risk levelExamplesWhat it means
UrgentExposed tokens, no backup of content, domain or project owned by someone elseFix this week, before any feature work
ImportantDraft content leaking, broken webhooks, no staging, missing redirectsFix in the stabilise phase
Cosmetic or laterNaming mess, unused types, old dependencies that still workSchedule, do not rush

The point of this table is to stop the project turning into a rewrite. Most abandoned sites do not need one. A rewrite is justified only when the schema fights every change you want to make, and even then a staged schema restructure on a live site is often cheaper and safer.

Step 4: Get a written plan

Insist on a document, not a call. A useful takeover plan has:

  1. What state the project is in, in plain language.
  2. The risk list above, ranked.
  3. What "finished" means for the unfinished parts, listed as outcomes such as "editors can publish a news article and it appears on the site within a minute".
  4. A fixed price or a capped range for the stabilise phase, with the finish work quoted separately.
  5. What you will receive at the end: repo ownership, env variable list, access list and a short runbook. The handover checklist is the standard to hold the developer to, including me.

If you need help describing the unfinished parts, how to write a project brief for hiring a Next.js developer is a good template.

Step 5: Stabilise before you finish

Stabilising comes before building new things. In order, it usually looks like this:

  • Rotate exposed secrets and move everything into your own accounts.
  • Export a dataset backup so you hold a copy of your content.
  • Create a staging setup so changes never touch production first. If production and staging share one dataset, see how to split it safely.
  • Fix the publishing loop so editors see their changes live. The usual causes are in Sanity editors publishing changes that don't show on the live site.
  • Add error handling so a slow API does not take the site down.

Only then do the unfinished features. This order matters because a developer who builds on an unstable base inherits every old problem and gets blamed for it.

A small export command is a good first deliverable, because it proves access and gives you a safety copy:

npx sanity dataset export production ./backup-production.tar.gz

Run it from the Studio project directory while logged in as a project member.

What to ask a developer before hiring them

  • Do you start with a paid review and a written plan, or do you quote the finish blind?
  • Which Sanity and Next.js versions do you work in, and what would you upgrade?
  • Will every account end up in my name, with you as an invited member?
  • What would make you recommend a rewrite instead of a fix?
  • What do I receive at the end?

Be wary of anyone who quotes a total price on the first call, asks for your logins in a chat message, or wants to rebuild everything from scratch before looking at it. For wider vetting advice, see hire a Next.js developer who can actually ship production.

Who can take over your unfinished Sanity website

This is the work I do: access recovery, a code and Studio review, a written risk plan, then stabilising and finishing the build. If you want a developer who has done it before, start at hire a Sanity developer and send me what you have, even if it is only a repo link and a domain.

Frequently asked questions

Who can take over our unfinished Sanity website?

Look for a developer who has shipped Sanity and Next.js together, not just one of them, and who will start with a paid, fixed-scope review before promising a finish date. Freelancers and small studios both do takeovers; what matters is that they put a written plan in front of you before touching the code.

Can I take over a Sanity project if I don't have the original developer's login?

Usually yes. Sanity projects belong to an organisation, and if you or your company is an administrator you can invite a new developer without the old one. If the project sits under the ex-developer's personal account, you need to go through Sanity support and prove ownership.

How long does a Sanity project takeover take?

The review and written plan typically take a few days to a week. Stabilising a small or mid-sized site often takes a couple of weeks, while a project with a broken schema and half-built features can take longer. A good developer gives you a range after the review, not before.