بنقرة واحدة
deploy
// Full production build — codegen, compile, prerender, and prepare for deployment.
// Full production build — codegen, compile, prerender, and prepare for deployment.
Add streaming SSR to a merjs page. Use when the user wants shell-first rendering, skeleton placeholders, or parallel data fetching that resolves inline.
Build and start the merjs dev server with hot reload. Use when the user wants to run, start, or serve the project.
Scaffold a new merjs API route. Use when the user wants to create a new API endpoint.
Scaffold a new merjs page. Use when the user wants to create a new page, route, or view.
Work with the merjs Zig web framework. Use when creating pages, API routes, WASM modules, or modifying the merjs build system. Provides conventions for file-based routing, SSR, dynamic routes, type-safe APIs via dhi, sessions, and Cloudflare Workers deployment.
| name | deploy |
| description | Full production build — codegen, compile, prerender, and prepare for deployment. |
| disable-model-invocation | true |
Run the full merjs production pipeline.
Regenerate routes:
zig build codegen
Run the full production build (codegen → compile → prerender):
zig build prod
Verify the output:
zig-out/bin/merjsdist/Report which pages were pre-rendered (those with pub const prerender = true)
To build the WASM worker target:
zig build worker
Output: worker/merjs.wasm