Skip to content
Public template

About

Vercel Template

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Ziex Vercel template

Docs · Examples · CLI · Discord · GitHub

Deploy with Vercel

Developing

Requirements: Node.js

npm install

Start dev server (http://localhost:3000):

npx vercel dev

Every Ziex CLI command is available as npx zx <command>.

Deploying

npx vercel deploy

Runtime: 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 --prerender

See Pre-rendering.

Built with

About

Vercel Template

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages