How to host a Webflow export on Vercel

Short answer

To host a Webflow export on Vercel, unzip the WebExport download and run npx vercel ./exported-site --prod. Vercel serves the files as a static site with no build step. Add a vercel.json for clean URLs and redirects, replace Webflow form handling with an outside endpoint, and test your CMS pages before you move the domain.

Last reviewed

Key facts

  • WebExport saves each Webflow CMS item as its own HTML file, so Vercel serves it as an ordinary static page.
  • No build command, framework preset or package.json is needed.
  • Set cleanUrls to true so /about works and /about.html redirects to it.
  • Webflow’s help says forms do not work in exported code, so each form needs a new endpoint.

What a Webflow export brings to Vercel

A Webflow export from WebExport holds the pages the crawler found in your published sitemap, the CSS, the Webflow Interactions (IX2) and GSAP scripts, fonts and images, with every path rewritten to a local folder. Vercel treats that folder as a static deployment and serves each file from its CDN. Nothing in it needs a Node version.

Before you deploy, look at how the pages are laid out. Webflow publishes /about as a clean path, and the export may save it as about.html or as about/index.html. If you find about.html files, cleanUrls keeps /about working. If you find folders with an index.html inside, Vercel serves them at /about/, and trailingSlash decides whether the final address keeps the slash.

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.

Create vercel.json inside the exported-site folder, next to index.html. This version turns on clean URLs, removes trailing slashes, redirects a renamed CMS folder and caches fonts and images for a week.

exported-site/vercel.json
{
  "cleanUrls": true,
  "trailingSlash": false,
  "redirects": [
    { "source": "/posts/:slug", "destination": "/blog/:slug", "permanent": true }
  ],
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        { "key": "X-Content-Type-Options", "value": "nosniff" },
        { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
      ]
    },
    {
      "source": "/assets/(.*)",
      "headers": [{ "key": "Cache-Control", "value": "public, max-age=604800" }]
    }
  ]
}

The redirect is an example for a site where the CMS collection folder changed from posts to blog. Replace it with your own old and new paths. permanent: true sends a 308, which Google treats as permanent, like a 301. Check which folder name your export uses for assets before you copy the cache rule.

Webflow output that needs fixing on Vercel

Webflow export: what to check
In the Webflow outputWhat to do on any static host
Forms handled by webflow.jsWebflow’s help lists forms as not working in exported code. Change each form action to a new endpoint and test a real submission.
Site search, Logic and membershipsThese run on Webflow’s servers. Remove the elements or replace them with a third-party service.
Lottie files and inline style backgroundsLottie animations load a JSON file from a data-src attribute, and inline styles can hold image URLs. Search the folder for website-files.com to catch leftovers.
CMS content frozen at export timeEach CMS item becomes an HTML file. A new post in Webflow shows up on your host only after you export again.

Webflow puts data-wf-page and data-wf-site on the html tag and loads webflow.js for interactions and forms. Keep both, because the interactions depend on them. The form handling is what to change. Give each form an action that points to your new endpoint and run a real submission after the first deploy. Search the folder for website-files.com as well, since Lottie data-src values and inline styles are where missed CDN links hide.

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.

The quickest fix on Vercel is a hosted form service, whose endpoint you paste into the action attribute. If you want submissions in your own database, add a Vercel Function at api/contact in the same project and post the form to /api/contact.

What can go wrong

  • A redirect whose destination the export did not save returns a 404 on the new host. Open every destination before you ship.
  • The exported pages keep the canonical tag they had. If it names an old staging address, search engines are told to index the wrong site, so confirm it names your final domain.
  • Leaving trailingSlash unset lets one page answer at /about and /about/, which Vercel’s own docs call a duplicate content risk.

Frequently asked questions

Does Vercel need a build command for a Webflow export?

No. The export is plain HTML, CSS and JavaScript, so Vercel deploys it as a static site. Pass the folder to npx vercel and leave the framework preset empty.

How do I keep my old Webflow URLs working on Vercel?

Keep the same page and folder names where you can, then add redirects entries in vercel.json for anything that changed. The Redirect Map Builder turns two URL lists into a mapping you can copy from.

Will Webflow interactions run on Vercel?

The IX2 and GSAP scripts are saved in the export and Vercel serves them like any other file, so scroll and hover animations should run. Compare a few animated sections with the live site after the first deploy.

How do I update the site after I change something in Webflow?

Publish in Webflow, run a new export, then deploy the new folder with the same command. Each production deploy replaces the previous one, and older deployments stay available in the Vercel dashboard.

Official documentation

Free tools for this job

Get the Webflow files first

Paste your public Webflow 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.