How to host a Framer export on Vercel

Short answer

To host a Framer export on Vercel, unzip the WebExport download and run npx vercel ./exported-site --prod. The folder deploys as static files. Check that no request still goes to framerusercontent.com, rebuild any redirects you set in Framer, and swap Framer form endpoints for one you control before pointing your domain.

Last reviewed

Key facts

  • Framer’s help says a published site cannot be exported as standalone HTML, so WebExport saves the rendered pages and their script bundles.
  • Vercel serves the .mjs script modules and fonts as ordinary static files.
  • Redirects set in Framer settings are not in the files and must be recreated in vercel.json.
  • Framer Motion bundles are downloaded with the pages, so animations should work offline.

What a Framer export brings to Vercel

A Framer page is a React app that renders on load. WebExport downloads the rendered HTML together with the JavaScript modules, Framer Motion bundles, fonts, SVGs and images it needs, and rewrites the paths to local folders. On Vercel those files are served like any other static asset, and the page hydrates in the browser the same way it did on Framer.

Open the deployed site, reload with the cache disabled and filter requests by framerusercontent. Any hit means a module or image path was not rewritten, and the page may depend on Framer to finish loading. Fix those references in the HTML before you move the domain.

Deploy the folder with the Vercel CLI

  1. Unzip the WebExport download and keep the folder name short, for example exported-site.
  2. Run a preview deploy first, open the URL it prints and click through the main pages.
  3. Promote the same folder to production once the preview looks right.
  4. In the project settings, add your domain and create the DNS records Vercel shows you.
terminal
npx vercel ./exported-site          # preview deployment
npx vercel ./exported-site --prod   # production deployment

Redirects, headers and 404s on Vercel

Vercel reads a vercel.json file at the root of the deployed folder. A redirects entry takes a source, a destination and either permanent (a 308) or statusCode. A headers entry takes a source pattern and a list of key and value pairs. Setting cleanUrls to true serves about.html at /about and sends /about.html to /about with a 308, and trailingSlash set to false sends /about/ to /about. Vercel also serves a 404.html from the project root for unmatched paths on a static deployment, which you should confirm with a request to a URL that does not exist.

Framer sites usually use short top-level paths. This vercel.json removes trailing slashes and redirects two pages whose names changed, and it adds a short cache time for the script modules so a fresh export reaches visitors quickly.

exported-site/vercel.json
{
  "trailingSlash": false,
  "redirects": [
    { "source": "/work", "destination": "/projects", "statusCode": 301 },
    { "source": "/contact-us", "destination": "/contact", "statusCode": 301 }
  ],
  "headers": [
    {
      "source": "/(.*)\\.mjs",
      "headers": [{ "key": "Cache-Control", "value": "public, max-age=3600" }]
    }
  ]
}

The two redirects are examples of pages that were renamed during the move. Framer keeps its own redirect list in site settings, so copy those rules here by hand. statusCode and permanent cannot be used together in one entry. If your export saves pages as folders with an index.html, leave cleanUrls off.

Framer output that needs fixing on Vercel

Framer export: what to check
In the Framer outputWhat to do on any static host
Script modules from framerusercontent.comFramer pages hydrate with JavaScript modules. Open the network tab and confirm no request still goes to framerusercontent.com.
Animation that starts on loadA missing script path can leave elements hidden or unanimated. Compare the first screen against the live site.
Forms that submit to FramerForms built with Framer’s own components post to a Framer service. Switch them to a form endpoint you control.
Redirects set in Framer settingsThey live in Framer, not in the files. Rebuild them in the host’s own redirect format before the domain moves.

The Framer output that needs attention is the form component and anything wired to Framer services. A form built with Framer’s own component posts to a Framer service, so give it a new endpoint. Also check the first screen against the live site. A script that fails to load can leave a hero section hidden or without its entrance animation, and that is the quickest sign that a module path is wrong.

Forms and dynamic features

Vercel has no form inbox for static files. Point the form at a form service, or write a Vercel Function that receives the POST and forwards it to your email or database.

Use a hosted form service for the simplest swap, or write a Vercel Function if you want the submission to land in your own system. Update the form’s action and test with a real email address.

What can go wrong

  • Redirects live in Framer settings, not in the exported files, so they vanish unless you rebuild them.
  • A cache rule that is too long on .mjs files can keep visitors on old scripts after you export again.
  • Pages that depend on Framer’s servers for data, such as live CMS fetches, will not update on their own. Re-export after a content change.

Frequently asked questions

Can I run a Framer site on Vercel without Framer hosting?

Yes, as a static copy. Framer says a published site is not plain static HTML, so the export is a saved render of each page. It runs on Vercel, and you re-export when content changes.

How do I check that nothing still loads from Framer?

Open the browser dev tools, go to the network tab, reload with the cache disabled and search for framerusercontent. Any match is a file that still comes from Framer.

Do Framer animations work on Vercel?

WebExport downloads the Framer Motion bundles with the pages, so layout animations should run from your own files. Test the animated sections on the preview deployment first.

Does Framer’s CMS update my Vercel site automatically?

No. The static copy shows the content from the day of the export. Run a new export and deploy it to publish CMS changes.

Official documentation

Free tools for this job

Get the Framer files first

Paste your public Framer URL into the export form and download a ZIP you can deploy to Vercel. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.