원클릭으로
dev
// Build and start the merjs dev server with hot reload. Use when the user wants to run, start, or serve the project.
// Build and start the merjs dev server with hot reload. Use when the user wants to run, start, or serve the project.
Add streaming SSR to a merjs page. Use when the user wants shell-first rendering, skeleton placeholders, or parallel data fetching that resolves inline.
Full production build — codegen, compile, prerender, and prepare for deployment.
Scaffold a new merjs API route. Use when the user wants to create a new API endpoint.
Scaffold a new merjs page. Use when the user wants to create a new page, route, or view.
Work with the merjs Zig web framework. Use when creating pages, API routes, WASM modules, or modifying the merjs build system. Provides conventions for file-based routing, SSR, dynamic routes, type-safe APIs via dhi, sessions, and Cloudflare Workers deployment.
| name | dev |
| description | Build and start the merjs dev server with hot reload. Use when the user wants to run, start, or serve the project. |
| disable-model-invocation | true |
Kill any existing process on port 3000:
lsof -ti :3000 | xargs kill -9 2>/dev/null
Regenerate routes (in case pages changed):
zig build codegen
Build the project:
zig build
Start the dev server in the background:
./zig-out/bin/merjs --port 3000 &
Wait 2 seconds, then verify the server is listening:
lsof -i :3000 -sTCP:LISTEN
Tell the user the server is running at http://localhost:3000
--port N — listen on a different port--no-dev — disable hot reload (SSE watcher)--prerender — pre-render SSG pages to dist/ and exit