Skip to content
TurnIntoCMS

v0 and Cursor site handoff: giving clients safe edits

By Yash Garg · · 6 min read

To hand off a site built with v0 or Cursor, get the code into a GitHub repository the client can own, clean out hard-coded copy and secrets, and give the client an editing path that commits small changes to that repository instead of prompting the AI tool against production. v0 can create and sync the repository for you; with Cursor, the repository is the local folder you already work in. After that, both sites are ordinary codebases, and the same review and rollback rules apply.

This guide covers how each tool gets code into Git, the cleanup pass before handoff, and how the client edits afterwards. If the site came from Lovable or Bolt instead, read the Lovable and Bolt handoff guide.

How a v0 project ends up in Git

v0 has a built-in GitHub connection. When you connect a project, v0 creates a private repository and pushes the project's current code to it, and from then on that repository is the source of truth for the code. You choose the GitHub account or organization that owns it, so pick the client's organization if they already have one.

Two details matter for handoff:

So a v0 site is already a GitHub repository plus a Vercel project. Handoff means deciding who owns each one.

How a Cursor project ends up in Git

Cursor is an editor with a coding agent, not a hosted builder. You open a folder on your machine and the agent edits the files in it, so the Git setup is whatever you created: a local repository you push to GitHub yourself.

Cursor's help pages say it adds AI git features on top of the standard Source Control panel, such as generated commit messages. They also say agent commits can carry a "Made with Cursor" trailer that is on by default. Decide before handoff whether you want that in the client's history, and turn it off in settings if not.

v0Cursor
Where the code startsv0 project, then a GitHub repository v0 createsA folder on your machine
Who commitsv0, to a working branchYou, or the agent in your editor
Deploy pathPull request merged into the base branch, then VercelWhatever host you connect to the repository
Check before handoffRepository owner, Vercel project ownerRemote URL, commit trailers, host settings

Clean up before handoff

AI tools write working code fast, but they rarely organise it for someone else to edit. Do one cleanup pass before the client gets access.

Move scattered copy into data files

Generated components often contain headlines, prices and testimonials typed straight into JSX across many files. Pull the text a client will touch into a few plain data files (for example content/home.ts and content/pricing.ts) that export strings and arrays. The client then has one obvious place for each change, and you can review edits without reading layout code.

Find and remove secrets

Check every file the AI generated for API keys pasted inline. Next.js keeps server-only values out of the browser unless you opt in, because only variables prefixed with NEXT_PUBLIC_ are bundled for the browser. Anything with that prefix is public, so never put a secret behind it.

In Cursor, .env files are on the default ignore list, along with everything in your .gitignore. Cursor's own docs add that complete protection isn't guaranteed due to LLM unpredictability, so keep real keys out of the folder where you can.

If a key was ever committed, deleting the file is not enough. GitHub says that as a first step you need to revoke or rotate the secret before cleaning history.

Settle the deploy settings

Write down the production branch, the environment variables each environment needs and the domain. For a v0 site, confirm the Vercel project and its domain belong to the account that will own the site after handoff. For a Cursor site, confirm the host builds from the repository the client owns, not your personal fork.

How the client edits after handoff

The risky habit is letting the client open v0 or Cursor and prompt changes on the live branch. A prompt like "change the price to 49" can rewrite more than one line, and the client can't judge a diff. Give them a narrower tool instead:

  1. Edit data files on GitHub. Fine for a technical client who edits rarely.
  2. A Git-based CMS. Forms over content files, with a content model you define.
  3. A visual editor over the code. The client clicks text or a picture on a live preview and the change is committed for them.

TurnIntoCMS takes the third approach: it reads the JSX and imported data files, and each publish is one commit on the branch you choose. Its limit is that content has to be in the code, so text fetched at runtime from an API isn't editable. See how this works for React and Vite sites built with AI tools and for letting clients edit a Next.js site, or weigh the options on the tool comparison page and in the TurnIntoCMS and Builder.io comparison.

You can keep using v0 or Cursor yourself for structural work. The rule is only that the client's day-to-day edits don't go through a code generator.

Review and rollback

Protect the branch that deploys to production. GitHub's branch protection rules define whether collaborators can delete or force push to the branch and can require status checks. v0 respects these rules: required checks or reviews keep its pull request open until they pass.

When a bad change reaches production, undo it in two places:

  1. Restore the live site. On Vercel, Instant Rollback returns production to an earlier deployment, though Hobby users can roll back to the immediately previous deployment only.
  2. Fix the history. Revert the commit in Git so the next deploy doesn't bring the problem back.

Handoff checklist

  • Repository owned by the client's GitHub account or organization
  • Vercel or other host project owned by the client, with the domain attached
  • Editable copy moved into data files
  • No secrets in the repository; any exposed key rotated
  • Environment variables listed per environment
  • Commit attribution setting decided (Cursor)
  • Production branch protected
  • Client editing method chosen and tested with one real change
  • Rollback steps written down

Common mistakes

  • Client prompts the AI tool on production. One request rewrites several files. Fix: give the client a tool that edits content only, and keep the AI for your own work.
  • Repository left in your personal account. The client depends on you for every access change. Fix: create it under the client's organization, or transfer it.
  • Secrets deleted but not rotated. The old value is still in history. Fix: rotate first, then clean up.
  • Copy buried in components. Fix: one data file per page or section.
  • No rollback plan. Fix: test a rollback on a preview before handoff.

FAQ

Does v0 store my site in GitHub?

Only if you connect it. Once connected, v0 creates a private repository, pushes the code there and publishes through pull requests.

Does Cursor create a GitHub repository for me?

Cursor works on a folder you open, so you create the repository and push it to GitHub as you would with any editor.

Should a client edit a v0 site in v0?

It's safer not to. Give the client a content-only editing path that commits small changes you can review and revert.

How do I undo a bad client edit?

Roll back the live deployment in your host if the site is broken, then revert the commit in Git.

Sources

  1. GitHub | v0 Docs (v0.app, checked November 18, 2026)
  2. Deployments | v0 Docs (v0.app, checked November 18, 2026)
  3. Git | Cursor Docs (cursor.com, checked November 18, 2026)
  4. Ignore File | Cursor Docs (cursor.com, checked November 18, 2026)
  5. How to use environment variables in Next.js (nextjs.org, checked November 18, 2026)
  6. Removing sensitive data from a repository (docs.github.com, checked November 18, 2026)
  7. About protected branches (docs.github.com, checked November 18, 2026)
  8. Performing an Instant Rollback on a Deployment (vercel.com, checked November 18, 2026)

Related

More from the blog

Let your clients edit the site you coded

One website free. Then $1 each, paid once.

Get started free