Docs · Examples · CLI · Discord · GitHub
Requirements: Node.js
npm installStart dev server (http://localhost:3000):
npx vercel devEvery Ziex CLI command is available as npx zx <command>.
npx vercel deployRuntime: Edge Functions by default (api/index.ts). To use the Node.js runtime instead, remove api/nodejs.ts from .vercelignore and point vercel.json at api/nodejs.ts.
Pre-rendering: pages that look the same for every visitor can be served from Vercel's CDN. Mark them with pub const options = zx.PageOptions{ .rendering = .prerendered }; and set buildCommand in vercel.json to:
zig build zx -- build --target=wasm32-wasi --release=small --prerenderSee Pre-rendering.
Built with
- Ziex: https://ziex.dev
- Zig: https://ziglang.org