name: deploy description: Full production build — codegen, compile, prerender, and prepare for deployment. disable-model-invocation: true
Production build
Run the full merjs production pipeline.
Steps
Regenerate routes:
zig build codegenRun the full production build (codegen → compile → prerender):
zig build prodVerify the output:
- Binary at
zig-out/bin/merjs - Pre-rendered pages in
dist/
- Binary at
Report which pages were pre-rendered (those with
pub const prerender = true)
Optional: Cloudflare Workers
To build the WASM worker target:
zig build worker
Output: worker/merjs.wasm