Ecosystem ↗

Fix structure

The precise current meaning of fix and its shared directory contract.

↗ View Markdown

Accepted mode#

This is the default when type is omitted. It does not freeze content or convert routes into static HTML.

zerux.config.ts
import type { ZeruxConfig } from 'zeruxjs';
export default {
  type: 'fix',
  entryPoint: 'src/index',
  outDir: '.zerux',
  structure: { app: 'src/app', middleware: ['src/middleware'],
    controllers: ['src/controllers'], composables: ['src/composables'],
    plugins: ['src/plugins'], public: ['public'] },
} satisfies ZeruxConfig;

Shared discovery#

All three modes resolve these paths from the project root. entryPoint is a module basename/path, not a URL mount. File routes and explicit plugin registrations use the same request lifecycle. A config type annotation neither starts services nor authorizes requests.

Choose a real hosting owner#

Build with zerux build, inspect its server/asset manifests, then use the supported Node runtime. Select a separate qualified deployment adapter when needed. Public-only static output requires zeruxjs/static-export; changing this label cannot remove runtime dependencies. Verify dev and production separately after moving source directories.

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.