Ecosystem ↗

Multisite structure

Host/path mapping is separate from tenant identity and database scope.

↗ View Markdown

Opt-in mapping#

multisite:true allows request middleware to call the existing context.multisiteRegister(url, folderName) mapping API. Folder names are validated single root-app segments. The runtime matches reviewed host/path registrations and maps into those app subtrees.

This is not another value for type; fix/dynamic/function remain independent structure labels. It is not a tenant resolver, identity provider or automatic database isolation system. Bind tenant/site identity from the host's verified authentication policy and enforce it in all storage and service calls.

Proxy and assets#

Do not trust arbitrary Host/forwarded headers as identity. Configure hosting origin/proxy policy explicitly, test unmatched hosts and check public asset exposure separately. Public directories are not private just because a route maps to a tenant folder.

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.