Deploy

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

justrach Updated
merjs

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 commit 3eb557a92b

Frequently asked questions

npx get-skill add justrach/deploy