Menu

Export a Framer site as a static site with Vite
📰

Export a Framer site as a static site with Vite

DEV Community: vite·Mehdi Hassan·about 9 hours ago
#pDEgwmE9
#devtovite#devto#dev#build#framer
Long article (1205 words) — no AI summary yet.
Reading 0:00
15s threshold

Framer can't export static files, but you can turn a published Framer site into one. Convert it with Deframer to the Vite target and you get a Vite and React project in TypeScript; npm run build prerenders every page into dist/ as HTML, and that folder is the whole site. Upload it to Netlify, Cloudflare Pages, Vercel, GitHub Pages or an S3 bucket behind a CDN, with no server to run. Unlike a saved-page snapshot, it is a project you can keep editing and rebuild.

Deframer is an independent tool and is not affiliated with, endorsed or sponsored by Framer. Downloading the code is for your own site or one whose owner allows it.

Static snapshot or static build?

There are two ways to end up with static files from a Framer site, and they are very different.

Saved HTML snapshot Vite project

How you get it Save the rendered pages with a crawler or "Save page as" Convert the site, then npm run build

What you edit Minified HTML and Framer's bundled scripts React components, CSS modules, JSON content

Depends on…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.