deploy

star 347

Full production build — codegen, compile, prerender, and prepare for deployment.

justrach By justrach schedule Updated 3/12/2026

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

  1. Regenerate routes:

    zig build codegen
    
  2. Run the full production build (codegen → compile → prerender):

    zig build prod
    
  3. Verify the output:

    • Binary at zig-out/bin/merjs
    • Pre-rendered pages in dist/
  4. 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

Install via CLI
npx skills add https://github.com/justrach/merjs --skill deploy
Repository Details
star Stars 347
call_split Forks 15
navigation Branch main
article Path SKILL.md
More from Creator