Alpha: Exporting your site to code is currently in alpha. This feature is subject to change and may have bugs, issues, and limitations. We're actively improving it based on your feedback.
You can export a Studio Two site as React source code and host it on your own infrastructure, work on it outside Wix, or import your changes back into Wix. The export is a complete, runnable project.
With an exported site you can:
An exported site is built to go in both directions. Its code follows the conventions Studio Two uses for pages, components, and extensions, so changes you make outside Studio Two, by hand or with a coding agent, can import back into the site. Each export is a copy of the site at that moment, so importing replaces the site with the exported site's version and overwrites any changes made in Studio Two since you exported.
An exported site is a Yarn workspace with a site package, and a code package if the site has a code project.
packages/site-app): Pages, shared sections such as the header and footer, and the site's menus and theme.packages/site-code): The site's code project, if it has one, where Editor React Components (ERCs), Data Sources, and other extensions live, exported as a standard Wix CLI app.An exported site is designed to be edited with a coding agent such as Claude Code or Cursor. The workspace includes files that tell the agent how to work on the site, so you can describe a change in plain language without explaining the rules yourself.
AGENTS.md, CLAUDE.md): These tell the agent to make every change in a form Studio Two can import, and to follow the editing skill before changing anything..claude/skills/wix-site-edit): The rules for editing pages, shared sections, the theme, and menus in a form the import accepts, with reference material and step-by-step playbooks for tasks such as adding a page or a section. It points to companion skills for setting up the CLI, looking up components, and building a new ERC.packages/site-app/component-catalog.md): Every component the site can use, grouped by kind, with a short description of each.packages/site-app/llm-context): One file per component, describing its props, the CSS properties you can set, its presets, and its inner parts.The site package is React, written in a particular style. Each element maps to one the Studio Two editor understands, so your changes import back into the site.
In the site package, you can:
Page files describe the components on a page and how they look. To add behavior, build it in the code package with any extension the site supports, for example an ERC for custom UI or a Data Source that shares data and functions with the components on a page.
The code package is a standard Wix CLI app, and the extensions you build there work the same way they do in the Code tab. Pages in the site package use your extensions just like built-in components. An ERC you create here appears on a page like any component from the catalog, and your Data Sources attach to the components that use them.
An exported site runs locally as a preview, so you can see your changes before you import or host them. Each page in the site package becomes a route, so a new page appears in the preview without any extra setup.
The preview shows how a page looks, and the project's lint checks whether the import will accept it. The lint applies the import's rules to the site package locally, so you can catch most problems before you import.
Building the site produces a Node server that serves each page, along with the site's 404 page for unknown URLs. You can host it on any platform that runs Node. Hosting is independent of Wix, but the running site isn't. It loads fonts and media from Wix and calls Wix APIs for any business features on the page. Think of an exported site as a frontend you host for a site Wix still runs.
Importing an exported site replaces the site with the exported site's version:
The import doesn't change the site's installed apps, CMS collections, or other site data, and it doesn't publish the site.
Some site features aren't supported in an exported site yet:
Last updated: 2 November 2026