Technical

Deployment Guide

Updated 1/19/2026
1 min read

Deployment Guide

1. Backend API (Worker)

The backend is a Cloudflare Worker.

npm run deploy

This runs wrangler deploy, which bundles the code and pushes it to Cloudflare. Ensure all secrets (API tokens, DB IDs) are set in the dashboard.

2. Admin Panel (Pages)

The admin panel is a Next.js app deployed to Cloudflare Pages.

npm run admin:deploy

This performs a two-step process:

  1. npm run admin:build: Uses @cloudflare/next-on-pages to compile the app for the Edge.
  2. wrangler pages deploy: Uploads the static assets and the _worker.js function.

3. Database Migrations

To update the schema:

  • Local: npm run d1:migrate
  • Production: npm run d1:migrate:prod