Ecosystem ↗

Static export

Explicit public-only HTML export is separate from Node builds and this docs app.

↗ View Markdown

Choose the output owner#

zeruxjs/static-export exposes exportStaticSite for opted-in request-free public routes, finite validated dynamic parameters, renderer/assets and bounded output. It stages a candidate before promoting, emits real 404 output and explicit redirect hosting metadata, and rejects private pages/actions/scripts. It does not serialize a server runtime into HTML or supply a universal SPA fallback.

The standalone Zyro generator's static mode uses this exporter for script-free HTML/CSS. Its client/SSR/hydrated modes are different outputs. The documentation app remains its own app-specific exporter; setting documentation on an arbitrary framework config does not enable it.

Production checks#

Set the exact public origin/base path. Inspect canonical and mounted hashed asset URLs, missing-route status, redirect metadata, route/time/byte budgets and last-good-output preservation. Mixed mode needs a real Node host for routes not exported; a static host cannot execute server functions. Callbacks/filesystem writers remain trusted, not sandboxed.

Implementation sources

Implementation files for the APIs described on this page.

ZeruxJS · Open source · MIT OR Apache-2.0

Make yourself at home.

Every shortcut has a visible control too. Reading and navigation work without JavaScript.

Ctrl / ⌘ K
Search all documentation
/
Search, outside editable fields
?
This help, outside editable fields
↑ / ↓
Move through search results
Esc
Close a dialog or version menu
Progress, privacy, offline reading and controls →

Reset this learning record?

This removes course answers, exercise confirmations, bookmarks and recent pages for this docs version in this browser. Export a copy first if you want to keep it.

Search documentation

Type at least two characters.