Deployment on Deno Deploy
Publish your documentation to the global edge network of Deno Deploy in under 60 seconds.
Deploying on Deno Deploy #
Deno Deploy is a globally distributed platform that runs modern JavaScript and TypeScript at the Edge across 35+ regions worldwide.
Zerho is architected specifically for Deno Deploy: its entrypoint main.ts acts as an edge HTTP
server, serving pre-rendered static assets with immutable cache headers and integrated Deno KV
analytics.
Method 1: GitHub Automatic Integration (Recommended) #
- Push your Zerho project to a GitHub repository.
- Sign in to the Deno Deploy Dashboard.
- Click "New Project" and select your repository.
- Configure the deployment settings:
- Entrypoint:
main.ts - Build command:
deno task build
- Entrypoint:
- Click Deploy Project.
CONTINUOUS
DEPLOYMENT Every time you run git push to your default branch (main), Deno
Deploy triggers an instantaneous zero-downtime deployment.
Method 2: Command Line Deployment (`deployctl`) #
If you prefer to deploy directly from your local terminal without Git commits:
BASH [TERMINAL]
# 1. Install or update the official deployctl tool from JSR
deno install -A jsr:@deno/deployctl -g
# 2. Deploy your project specifying the entrypoint
deployctl deploy --project=my-docs main.ts
Edge Caching and Performance #
Zerho's main.ts automatically applies web performance best practices:
- Static Assets (CSS, JS): Cached with immutable headers
(
cache-control: no-cache, must-revalidatein dev, ormax-age=31536000, immutablein production). - HTML Pages: Fast edge delivery with near-zero cold starts (< 5ms).
- Integrated Deno KV: Ingests page feedback and search telemetry directly at the edge without third-party trackers.