Oleg Isonen 8a46350c9a fix: Compile MDX Content Blocks in hosted builds (#6455)
Hosted MDX pages can publish successfully and then fail to render
because the publish runner skips their source files. Restore source
downloads and compilation for MDX Content Blocks, including dynamic
article queries and template dependencies.

Reuse the existing publication planner and local content compiler.
Markdown-only pages keep their bodies on demand; hosted MDX pages
download article sources and pay the necessary compilation cost in the
runner, not the publish API. Reject missing content databases and MDX
materialization errors instead of deploying an incomplete page.

Ref #6450
Ref #6454

## Checklist

- [x] Reproduce missing MDX content using the affected deployed build.
- [x] Restore hosted MDX compilation without duplicating the
static-export compiler.
- [x] Add a sync → compile → generated query → React server-render
regression with a metadata-only API bundle and a frontmatter-bound
Content Block.
- [x] Verify new regression checks fail without the required behavior
and pass with it.
- [x] Reject missing MDX sources and content databases; preserve remote
article bodies when no MDX Content Blocks need compilation.
- [x] Review documentation impact and update the Content Engine
publishing explanation.
- [x] Run CLI tests, typecheck, lint, formatting, and package-boundary
checks.
- [x] Run the full fixture link/sync/build pipeline; no generated
changes.
- [x] Rebuild the affected project locally and exercise its generated
production request handler: HTTP 200 with the article title and body.
Asset requests were served from synced local files.

The live project was not modified or republished. Its existing
title/description bindings still use an array access for a single-result
query; that separate project-data issue is not changed here. Agent
evaluations were not run. Affected sites need republishing after the
updated CLI artifact is deployed.
2026-09-28 18:42:17 +02:00
2026-07-12 11:27:58 +02:00
2026-09-02 22:25:11 +02:00
2026-02-05 10:25:17 +01:00
2026-03-20 21:09:47 +01:00
2026-09-02 22:25:11 +02:00
2023-09-06 21:43:29 +03:00

builder-screenshot

Webstudio is an Open Source Visual Development Platform for developers, designers, and cross-functional teams. You own the data, components, and infrastructure. You can use the hosted version or roll out your own.


Learning Resources

Social Media

License

  • Webstudio core (all functionality in this repository) is free/open-source under AGPL-3.0-or-later.
  • sdk-components-animation package (optional) is proprietary. You must accept the Webstudio, Inc. EULA located in sdk-components-animation/LICENSE before using it.
Languages
TypeScript 98.9%
PLpgSQL 0.5%
CSS 0.3%
Shell 0.2%
JavaScript 0.1%