How to host a Framer export on Netlify
To host a Framer export on Netlify, unzip the WebExport download and drag the folder onto Netlify or run npx netlify-cli deploy --dir=exported-site --prod. Use netlify.toml for redirects and headers. If you want Netlify Forms, add a hidden static form, because forms rendered by JavaScript are not found at deploy time.
Last reviewed
Key facts
- Netlify’s form detection reads static HTML, so a form that React draws in the browser needs a hidden twin.
- netlify.toml can hold redirects and headers in one file.
- Framer says a published site cannot be exported as plain HTML, so the copy is a saved render.
- Script modules load from your own files once paths are rewritten.
What a Framer export brings to Netlify
A Framer page renders in the browser. WebExport saves the finished HTML along with the script modules, Framer Motion bundles, fonts and images, and rewrites their paths to local files. Netlify serves them with the correct types, and the page hydrates as it did on Framer.
Framer sites tend to have few pages and a lot of motion, so the deploy is quick and the testing is visual. Scroll the whole page on the Netlify preview URL, watch for sections that stay hidden, and compare them with the live site side by side before you change DNS.
Deploy by drag and drop or with the Netlify CLI
- Unzip the download so the folder contains index.html at its top level.
- Drag the folder onto the deploy area in the Netlify dashboard, or use the CLI for repeat deploys.
- Open the generated netlify.app URL and check the home page, one inner page and one image.
- Add your custom domain under domain settings and follow the DNS instructions.
npx netlify-cli deploy --dir=exported-site # draft deploy
npx netlify-cli deploy --dir=exported-site --prod # production deployRedirects, headers and 404s on Netlify
Netlify reads two plain text files from the publish directory, _redirects and _headers, and an optional netlify.toml. In _redirects each rule is a line with the old path, the new path and a status code. Rules in _redirects run before rules in netlify.toml, and the first match wins. In _headers a path line is followed by indented Name: value lines. Headers apply only to files Netlify serves from its own storage. A file named 404.html in the publish directory is used as the not-found page.
This netlify.toml sits at the top of the folder. It redirects two renamed pages and adds a short cache time to script modules so updates reach visitors soon after you deploy.
[[redirects]]
from = "/work"
to = "/projects"
status = 301
[[redirects]]
from = "/work/*"
to = "/projects/:splat"
status = 301
[[headers]]
for = "/*.mjs"
[headers.values]
Cache-Control = "public, max-age=3600"Framer keeps its redirects in site settings, so copy any you rely on into this file by hand. The work and projects names are examples. Netlify processes _redirects first and then netlify.toml, so avoid listing the same path in both files.
Framer output that needs fixing on Netlify
| In the Framer output | What to do on any static host |
|---|---|
| Script modules from framerusercontent.com | Framer pages hydrate with JavaScript modules. Open the network tab and confirm no request still goes to framerusercontent.com. |
| Animation that starts on load | A missing script path can leave elements hidden or unanimated. Compare the first screen against the live site. |
| Forms that submit to Framer | Forms built with Framer’s own components post to a Framer service. Switch them to a form endpoint you control. |
| Redirects set in Framer settings | They live in Framer, not in the files. Rebuild them in the host’s own redirect format before the domain moves. |
Framer forms are drawn by React, and Netlify’s build parser cannot see them. The Netlify docs describe the fix: add a hidden static form with data-netlify="true" and the same name to the page, and include a hidden input called form-name in the submitted data. Then change the Framer form’s action to post to that name. Also confirm that no request goes to framerusercontent.com after the first deploy.
Forms and dynamic features
Netlify Forms collects submissions without a server of your own. Add data-netlify="true" and a unique name to a form in static HTML and enable form detection in the dashboard, then deploy again so the build parser finds it.
Netlify accepts a URL-encoded POST to the site root and does not accept JSON, so a script that posts JSON needs a change. Test with a real submission and check the Forms tab for it.
What can go wrong
- A hidden form with a different name from the one the script posts means submissions land nowhere.
- Duplicate redirect rules in _redirects and netlify.toml are hard to debug, because only the first match runs.
- A script that fails silently can leave the first screen blank. Reload with the cache disabled and read the console.
Frequently asked questions
Does Netlify Forms work with a Framer form?
Only with a workaround. Netlify detects forms in static HTML at deploy time, so add a hidden static form and post the Framer form to the same name with a form-name field.
Can netlify.toml replace _redirects for a Framer export?
Yes. Both are supported. Rules from _redirects run first, then netlify.toml rules, and the first match wins, so keep each path in one place.
Will my Framer animations work on Netlify?
They should, because the Framer Motion bundles are saved with the pages. Check the animated sections on the draft deploy before you go live.
How do I update a Framer site hosted on Netlify?
Publish in Framer, export again, and deploy the new folder with the same command. The draft deploy gives you a preview address to check before production.
Official documentation
Free tools for this job
- Framer Site AnalyzerAnalyze fonts, colors, assets, and page structure of any Framer-published site.
- Framer Site Speed TesterRun performance checks on any Framer-published URL with actionable insights.
- Static Hosting PickerAnswer 5 questions and get the best hosting recommendation for your exported site.
- Static Site Hosting Cost CalculatorCompare hosting costs: Webflow vs Vercel vs Netlify vs Cloudflare Pages at scale.
Get the Framer files first
Paste your public Framer URL into the export form and download a ZIP you can deploy to Netlify. 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.