# Deploy

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

- Skill: `justrach/deploy` (Agent Skill)
- Install (CLI): `npx skillmds@latest add justrach/deploy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/justrach/deploy/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: justrach (https://skillmd.com/u/justrach)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/justrach/deploy

---


# Production build

Run the full merjs production pipeline.

## Steps

1. Regenerate routes:
   ```bash
   zig build codegen
   ```

2. Run the full production build (codegen → compile → prerender):
   ```bash
   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:
```bash
zig build worker
```
Output: `worker/merjs.wasm`

