---
title: "Maintain a Converted Framer Site with Git | Deframer"
description: "Keep a converted Framer site maintainable with Git: commit the conversion, review on branches, merge re-conversions after a republish, update deps."
url: https://deframer.co/blog/maintaining-a-converted-framer-site-with-git
---

# Maintaining a converted Framer site with Git

Maintain a converted Framer site with Git: commit the conversion, review on branches, merge new conversions after a republish, update deps.

Deframer

**Published**

29 August 2026

**Updated**

31 October 2026

**Reading time**

5 min

- [Git](https://deframer.co/blog?tag=git)
- [Workflow](https://deframer.co/blog?tag=workflow)
- [Next.js](https://deframer.co/blog?tag=nextjs)

![Deframer cover: “Every change, reviewed in Git.” Beside it, a list of Commit, Branch, Review and Merge with Review selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fmaintaining-a-converted-framer-site-with-git.webp&w=3840&q=75)

The cleanest way to maintain a Framer site converted with Deframer to Next.js is to treat it like any other Next.js App Router project: initialize a Git repository, commit the untouched conversion first, make every change on a branch, and review it before it ships. If the site is still edited in Framer, keep the converter's output on its own branch, convert again after each Framer republish, and merge that branch into your work so Git shows exactly what changed. The project already ships with a `.gitignore` and a TypeScript setup, so you can start in a few commands. Everything here applies equally to a [TanStack Start](https://deframer.co/framer-to-tanstack-start), [Astro](https://deframer.co/framer-to-astro) or [React Router](https://deframer.co/framer-to-react-router) export; only the framework's own commands differ.

![Five steps: initialize the repository, push and connect your host, work on branches, re-convert after a Framer republish (selected), keep dependencies current](https://deframer.co/api/cms/media/file/git-steps.webp)

The five steps this guide walks through.

## Step 1: Initialize the repository

Unzip the download, install dependencies and confirm it runs before your first commit. Next.js 16 needs Node.js 20.9 or later.

sh

```
unzip my-site.zip
cd my-site          # the unzipped project folder
npm install
npm run build
git init
git add .
git commit -m "Initial conversion from Deframer"
```

Running `npm install` creates a `package-lock.json`. Commit it: `package.json` pins exact versions of `next`, `react`, `react-dom`, `motion` and the site's own packages, and the lockfile pins everything they depend on, so every machine and every deployment installs the same tree.

### What the included `.gitignore` covers

The converted project's `.gitignore` already lists:

Code

```
node_modules
.next
out
next-env.d.ts
*.tsbuildinfo
.env*.local
```

That keeps build output and dependencies out of history, and keeps `.env.local` (where form webhook URLs go) out of the repository. `.env.example` is committed on purpose: it documents which variables the project reads, such as `FORMS_WEBHOOK_URL`, without their values.

### Why the first commit should be untouched

Resist the urge to tidy before committing. A pristine first commit is your reference point: when something looks wrong later, `git diff` against it tells you whether the converter produced it or someone changed it. It also makes the re-conversion workflow below possible.

## Step 2: Push and connect your host

Create an empty repository on your Git host, add it as a remote and push:

sh

```
git branch -M main
git remote add origin <your-repository-url>
git push -u origin main
```

Most Next.js hosts can deploy straight from a Git repository, building `main` for production and creating preview deployments for other branches or pull requests. The exact behavior and settings differ, so check the provider's docs; [deploying to Vercel, Netlify, Cloudflare or Fly.io](https://deframer.co/blog/deploy-converted-framer-site-vercel-netlify-cloudflare-fly) covers the per-host setup.

## Step 3: Work on branches

A simple routine works for most teams:

1. `git switch -c fix-pricing-copy`
2. Edit. The project README's "Where to edit" table points you to the right file: page content in `src/views/`, shared pieces in `src/components/`, CMS records in `src/cms/<collection>.json`, colors in `src/styles/tokens.ts`.
3. `npm run build` locally to catch errors early.
4. Commit, push, open a pull request, and check the preview deployment at desktop, tablet and phone widths.
5. Merge to `main` to ship.

Small, focused commits pay off here. "Update hero headline" and "Add new case study" are easy to review and easy to revert. A single commit mixing copy, layout and a dependency bump is not.

### Type checking in pull requests

If the site has Framer code components, `next.config.ts` keeps `typescript: { ignoreBuildErrors: true }` with a comment explaining why: that code was written in Framer's editor, which never type-checks it. `npx tsc --noEmit` still reports everything. A useful habit is to run it on each branch and make sure you haven't added new errors in files you touched, even if older ones remain in `src/code/` or `src/vendor/`.

## Step 4: Re-converting after a Framer republish

Some teams keep designing in Framer and use the converted project as the production codebase. When the Framer site changes, you need those changes in the project without losing your own edits. A dedicated branch for converter output handles this.

### Set up the branch once

Right after the initial commit, before any edits of your own:

sh

```
git branch deframer
```

The `deframer` branch only ever holds unmodified conversions. `main` holds your work.

### Each time the Framer site is republished

1. Convert the site again in Deframer. Converting is free; a republished site makes a new project, and downloading it uses a credit (see [how credits work](https://deframer.co/pricing#credits)).
2. Check the result page's notices before downloading.
3. Replace the branch's contents with the new conversion:

sh

```
git switch deframer
git rm -rq .                         # stage removal of every tracked file
unzip -o ~/Downloads/my-site.zip -d /tmp/new-conversion
cp -R /tmp/new-conversion/my-site/. .
npm install                          # regenerate package-lock.json for this conversion
git add -A
git commit -m "Conversion after Framer republish"
```

Removing everything first matters: it lets Git record files the new conversion no longer contains, such as a deleted page. Running `npm install` before committing keeps a lockfile on the branch, so the merge doesn't delete yours. Adjust the folder names to match your zip.

1. Review what Framer changed: `git diff HEAD~1 --stat`, then look at individual files.
2. Bring it into your work:

sh

```
git switch main
git switch -c merge-conversion
git merge deframer
```

Git applies the converter's changes on top of yours. Where both sides edited the same lines, you resolve the conflict by hand, then build, test and open a pull request as usual.

Expect the first few merges to need attention. Changes in Framer can ripple through generated files, especially CSS modules and shared components, so conflicts tend to cluster where you've made your heaviest edits. Keeping your own changes in separate files where you can (a new component instead of rewriting a generated one) makes these merges smaller.

### When to stop re-converting

At some point the code becomes the source of truth and Framer becomes a sketchpad. Once your edits outweigh what you'd pull in, it's usually simpler to make design changes directly in the code and retire the `deframer` branch. There's no wrong time; pick it deliberately.

## Step 5: Keeping dependencies current

Pinned versions mean nothing changes under you, but it also means updates are your job.

sh

```
npm outdated
```

A careful order:

1. **Patch releases** of `next`, `react` and `react-dom` first, together. Build and click through the site.
2. `motion` next, then check animations, hover states and page transitions in the browser.
3. **The site's own packages** one at a time, testing the components that use them.
4. **Major versions** on their own branch, after reading the package's upgrade guide.

Run `npm audit` periodically, and update `@types/react`, `@types/node` and `typescript` alongside the packages they describe. If a build fails after an update, [common conversion issues](https://deframer.co/blog/common-framer-to-nextjs-conversion-issues) explains several of the errors you may see, and the [agency workflow guide](https://deframer.co/blog/agency-workflow-converting-client-framer-sites) covers keeping one repository per client.

## FAQ

### Should I commit the project before making any changes?

Yes. An untouched first commit gives you a reference for every later diff and is the starting point of the `deframer` branch used for re-conversions.

### Is \`.env.local\` safe from being committed?

Yes. The included `.gitignore` ignores `.env*.local`, so webhook URLs and other secrets stay local. Set the same variables on your host separately.

### Does re-converting overwrite my edits?

Not if you use a separate branch. Commit each new conversion to a `deframer` branch, then merge it into your work; Git keeps your changes and asks you to resolve any lines both sides edited.

### Does converting the site again cost a credit?

Converting is free, but a conversion of a republished site is a new project, and downloading it uses a credit. Converting the same published version with the same options within 30 minutes returns the earlier project, and re-downloading a project is free while it's available.

Deframer

## Move your Framer site to clean code.

Convert your site free, review the result, then download it as a TypeScript project you own: Next.js, Astro, React, TanStack Start, React Router, Nuxt or HTML.

[Convert your site](https://deframer.co/dashboard)[Pricing](https://deframer.co/pricing)

## Keep reading

[All posts](https://deframer.co/blog)

- ![Deframer cover: “Edit with AI. Review the diff.” Beside it, two cards, AI prompt to Your code, with AI prompt selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fedit-a-framer-site-with-cursor-or-claude-code.webp&w=3840&q=75)

  AI 3 Nov 2026 7 min read

  ### [Edit a Framer site with cursor or claude code](https://deframer.co/blog/edit-a-framer-site-with-cursor-or-claude-code)

  Convert your Framer site to TypeScript, then edit it with Cursor, Claude Code or Copilot. A practical workflow, example prompts and the guardrails to keep.
- ![Deframer cover: “Every branch, its own URL.” Beside it, a list of Branch, Preview URL, Approve and Production with Preview URL selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fpreview-deployments-for-a-converted-framer-site.webp&w=3840&q=75)

  Workflow 30 Oct 2026 5 min read

  ### [Preview deployments for a converted Framer site](https://deframer.co/blog/preview-deployments-for-a-converted-framer-site)

  Give every change to a converted Framer site its own preview URL on Vercel, Netlify or Cloudflare, and a review flow designers can approve before it goes live.
- ![Deframer cover: “Hit a snag? Here’s the fix.” Beside it, a list of Verification, Build errors, Hydration and After deploy with Build errors selected](https://deframer.co/_next/image?url=%2Fapi%2Fcms%2Fmedia%2Ffile%2Fcommon-framer-to-nextjs-conversion-issues.webp&w=3840&q=75)

  Troubleshooting 27 Aug 2026 6 min read

  ### [Common Framer to Next.js conversion issues and how to fix them](https://deframer.co/blog/common-framer-to-nextjs-conversion-issues)

  Framer to Next.js conversion issues and their fixes: verification, oversized sites, Deframer's notices, build errors and hydration warnings.
