---
title: "Framer to Vite from VS Code (GitHub Copilot) · Deframer"
description: "Convert a Framer site to Vite from VS Code (GitHub Copilot) with the Deframer MCP server: setup, the prompt and the project you get. Free to convert."
url: https://deframer.co/vscode/vite
---

Editor · Framer to Vite

# Convert a Framer site to Vite from VS Code (GitHub Copilot) with the Deframer MCP.

Add Deframer to VS Code and use it from GitHub Copilot's agent mode. VS Code signs in to Deframer with OAuth the first time it connects. A static site, for any host.

1 · Set up VS Code (GitHub Copilot)

## Connect it.

1. Run **MCP: Add Server…** from the Command Palette and choose **HTTP**, or create `.vscode/mcp.json` with the server below.
2. Choose **Start** above the server. VS Code opens deframer.co: sign in and choose **Allow**.
3. Open Copilot Chat in **Agent** mode, check that Deframer's tools are on, and ask it to convert your site.

.vscode/mcp.json json

```
{
  "servers": {
    "deframer": {
      "type": "http",
      "url": "https://deframer.co/mcp"
    }
  }
}
```

2 · Ask for it

## Ask for Vite. It does the rest.

- The key is `servers`, not `mcpServers`, and `"type": "http"` is required.

Prompt for VS Code (GitHub Copilot) text

```
Convert https://my-site.framer.website to Vite with the images on Framer's CDN
```

3 · What you get

## A static Vite project, prerendered into dist/

| File | What it holds |
| --- | --- |
| `scripts/prerender.ts` | Runs after vite build and writes every page into dist/ as a flat file at its URL: about.html for /about, index.html for /, the 404 page as 404.html. |
| `src/routes/**/index.tsx` | One route module per page, with its title and description in <PageHead>; CMS items take theirs from a head.json table. |
| `public/_redirects, vercel.json` | The site's redirects for Netlify and Cloudflare Pages, and for Vercel; for hosts with neither, a page at each old URL sends the browser on. |
| `src/site/forms.ts` | Each form's endpoint, read at build time: a form service's URL in VITE_FORM_ENDPOINT, or netlify for Netlify Forms. |
| No server | Every page, CMS items included, is an HTML file in dist/, styled before its scripts run, then hydrated in the browser. Links open the next page in the same document with React Router, and the layout template two pages share stays mounted. |
| Redirects on any host | The site's redirects come as public/_redirects for Netlify and Cloudflare Pages and vercel.json for Vercel, and, for hosts with neither such as GitHub Pages, as a page at each old URL that sends the browser on. |

Run the Vite project sh

```
npm install
npm run dev
npm run build
```

- **Install.** Installs Vite 8, React Router 8, React 19, motion and the packages the site's own code uses.
- **Develop.** Runs vite: edit a view in src/views and the page updates.
- **Build.** Builds with Vite and prerenders every page into dist/, on Node.js 22.18 or later; npm run preview serves dist/ as a static host does.
- A Vite site is its dist/ folder: upload it to any static host, such as Netlify, Cloudflare Pages, Vercel, GitHub Pages or an S3 bucket behind a CDN. Nothing runs on a server, and production needs no Node.js.

4 · Verify and download

## Free to convert, one credit to download.

- **Verify with the project link (recommended).** In Framer, choose Invite, then Copy next to Project link, and paste it to VS Code (GitHub Copilot): `verify_site` checks with Framer that the project publishes to your site. Nothing changes in the project or on the site.
- **Or with the meta tag.** Ask VS Code (GitHub Copilot) for your ownership tag (`get_account`), paste it into the site's custom code in Framer and publish; `check_site` confirms it.
- Converting is free. A verified download costs 1 credit, or 10 credits without verification once you confirm you own the site or have permission. Packs: $20 for 1 credit, $50 for 5, $100 for 50, paid once; credits never expire.
- Unlocking and downloading happen on deframer.co: no app can spend your credits. Revoke the connection any time in Dashboard → Connected apps.

[VS Code (GitHub Copilot) setup guide](https://deframer.co/docs/vscode)[Framer to Vite](https://deframer.co/framer-to-vite)[Pricing](https://deframer.co/pricing)

FAQ

## Vite from VS Code (GitHub Copilot), answered

The tools and sign-in are in the [MCP server reference](https://deframer.co/docs/mcp), the Vite project on [Framer to Vite](https://deframer.co/framer-to-vite).

### Can I convert a Framer site to Vite from VS Code (GitHub Copilot)?

Yes. Connect the Deframer MCP server to VS Code (GitHub Copilot) (3 steps, [setup guide](https://deframer.co/docs/vscode)), then ask it to convert your site to Vite. It calls Deframer's `start_conversion` tool with `framework: "vite"`, follows the conversion and gives you the deframer.co page where you review, unlock and download the project.

### Where can I host the static site?

Anywhere that serves static files: Netlify, Cloudflare Pages, Vercel, GitHub Pages or an S3 bucket behind a CDN. Each page is an HTML file at its URL (`about.html` for `/about`); Netlify, Cloudflare Pages and GitHub Pages serve it at `/about`, and the project's `vercel.json` turns that on for Vercel.

### How do forms work without a server?

Each native form posts its fields to a form service, such as Formspree or Basin, whose URL you set in `VITE_FORM_ENDPOINT` (or a form's own variable) when you build. On Netlify, set it to `netlify` and Netlify Forms receives them.

### How do I verify my site from VS Code (GitHub Copilot)?

Paste your Framer project's link (in Framer: Invite, then Copy next to Project link) and ask VS Code (GitHub Copilot) to verify the site: the `verify_site` tool checks with Framer that the project publishes to that address, and nothing changes in the project or on the site. Or publish the ownership tag from your account in the site's custom code, which `check_site` then finds.

### What does it cost?

Converting is free. Downloading costs 1 credit for a verified site, or 10 credits without verification after you confirm you own the site or have permission. Packs are $20 for 1 credit, $50 for 5, $100 for 50, paid once; credits never expire. VS Code (GitHub Copilot) can't spend them: unlocking and downloading happen on deframer.co. See [pricing](https://deframer.co/pricing).

More

## From VS Code (GitHub Copilot), to any framework.

- [VS Code (GitHub Copilot)**Next.js**App Router, Next.js 16, in TypeScript.](https://deframer.co/vscode/nextjs)
- [VS Code (GitHub Copilot)**TanStack Start**File routes on Node.js, in TypeScript.](https://deframer.co/vscode/tanstack-start)
- [VS Code (GitHub Copilot)**Astro**Prerendered pages, one React island.](https://deframer.co/vscode/astro)
- [VS Code (GitHub Copilot)**React Router**Framework mode, prerendered.](https://deframer.co/vscode/react-router)
- [VS Code (GitHub Copilot)**Nuxt**Nuxt 4 and Nitro, React pages.](https://deframer.co/vscode/nuxt)
- [VS Code (GitHub Copilot)**HTML**Built pages, ready to upload.](https://deframer.co/vscode/html)

Elsewhere

## Vite, from any app.

- [Vite**Claude**The Deframer connector for Claude on the web, desktop and mobile.](https://deframer.co/claude/vite)
- [Vite**Claude Code**The Deframer plugin: convert from your terminal and unzip the project into your repository.](https://deframer.co/claude-code/vite)
- [Vite**Cursor**Add Deframer to Cursor's agent as a remote MCP server.](https://deframer.co/cursor/vite)
- [Vite**Windsurf**Add Deframer to Windsurf's Cascade as a remote MCP server.](https://deframer.co/windsurf/vite)
- [Vite**Codex**Add Deframer to OpenAI's Codex CLI with one command.](https://deframer.co/codex/vite)
- [Vite**Gemini CLI**Add Deframer to Google's Gemini CLI.](https://deframer.co/gemini-cli/vite)
