Deploy

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

justrach 3eb557a 657 B Updated

File contents

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

justrach/merjs/tree/main/.claude/skills/deploy commit 3eb557a92b

Frequently asked questions

npx skillmds@latest add justrach/deploy