## Summary - Document how people create, connect, edit, validate, and publish MDX-backed Content Blocks. - Document the complete MCP workflow, including scoped expression sources, frontmatter updates, diagnostics, conflicts, and disconnect behavior. - Add two focused screenshots for the human workflow. - Fix issues found by a low-reasoning MCP agent while executing every documented workflow. Ref #6182 ## Implementation notes - Connection confirmation uses the public `confirmReplacement` field because `confirm` is reserved as a hidden transport field. - MCP edits frontmatter with `update-content-block-frontmatter`; materialized MDX elements are not persistent targets for generic instance mutation tools. - Reload now intentionally discards a conflicted local source and accepts the Asset's latest storage revision before an edit is reapplied. - Generated MCP documentation and runtime contracts are updated from their source files. ## Checklist - [x] Document the human MDX Content Block workflow. - [x] Document MCP discovery, connection, editing, diagnostics, frontmatter, dynamic sources, conflicts, and disconnection. - [x] Add only screenshots that clarify otherwise hard-to-describe UI steps. - [x] Test every documented MDX capability through the local MCP CLI with a low-reasoning agent. - [x] Reproduce and fix the replacement-confirmation schema mismatch. - [x] Reproduce and fix persistent-session conflict reload and reapply. - [x] Add regression tests that failed before each product fix and pass afterward. - [x] Regenerate runtime contracts and generated MCP documentation. - [x] Review authoritative `docs/` content and update affected pages. - [x] Run affected tests, typechecks, formatting, and diff checks. ## Verification - Project Build: 208 affected tests passed. - Content Engine Asset session: 8 tests passed. - CLI documentation tests: 14 tests passed. - MCP docs generator: 3 tests passed. - Content Engine, Project Build, CLI, and MCP docs typechecks passed. - `pnpm oxfmt --check` passed. - `git diff --check` passed. - Low-reasoning MCP evaluation passed all documented workflows, including a real two-client revision conflict, reload, reapply, and final saved inspection.
3.3 KiB
description
| description |
|---|
| Learn how to deploy your project to Netlify. |
▶️ Netlify
Netlify, a popular choice for deploying modern websites and apps, offers features like continuous deployment from Git across a global application delivery network, serverless form handling, and more. It provides an ideal environment for deploying your Webstudio Projects.
Netlify supports deploying both dynamic apps and static sites.
{% hint style="info" %} See export types for more information about JavaScript applications vs. static sites. {% endhint %}
JavaScript application
Learn how to deploy your dynamic JavaScript application to Netlify.
{% embed url="https://www.youtube.com/watch?v=Gr1jPtsg6_Q" %}
Prerequisites
- Install the Webstudio CLI
Use the Netlify CLI to deploy your app directly to Netlify:
netlify deploy
You can configure the project to support Netlify serverless/edge-functions respectively, as deployment target at the time of initially setting up your project. Please check the initiating-a-webstudio-project section.
You can manually change it using the build command. For serverless functions:
webstudio build --template netlify
Complete CLI Workflow
Here's the full step-by-step process for deploying to Netlify:
# 1. Create a Webstudio project folder
npx webstudio
# Follow prompts: enter folder name, paste your Share Link
# 2. Navigate to your project
cd your-project-folder
# 3. Install dependencies
npm install
# 4. Login to Netlify
npx netlify-cli login
# 5. Create a new Netlify site
npx netlify-cli sites:create
# 6. Build your project
npm run build
# 7. Deploy to preview URL (for testing)
npx netlify-cli deploy
# 8. Deploy to production (when ready)
npx netlify-cli deploy --prod
Redeploying Changes
When you make changes in Webstudio:
- Publish changes in Webstudio
- In your project folder, run:
npx webstudio sync npm run build npx netlify-cli deploy --prod
Static site
Learn how to upload your static site to Netlify.
Netlify uses a trailing slash for generated directory index pages. Review the static site URL behavior before deployment.

Prerequisites
- Export your project using one of the export methods.
How to upload your project to Netlify:
-
Go to Sites
-
Add a new site
- Manually – upload the export zip from Webstudio
- Git – Unzip the export and add it to a repository such as GitHub
-
Click “Open production deploy”
Related
- CLI – Export and build your project using the command line
- Vercel – Another popular platform for deploying JavaScript apps
- Cloudflare Pages – Deploy static sites to Cloudflare's network
- Publishing and custom domains – Set up custom domains for your site
