MailDocs

Reference

Configuration

Bindings, variables, secrets, hosts and scripts.

Everything the mail-catalog Worker is bound to, from wrangler.jsonc.

Worker

Setting Value
Name mail-catalog
Entry point custom-worker.ts
Compatibility date 2026-08-24
Compatibility flags nodejs_compat
Observability On

Bindings

Binding Type Resource
DB D1 database mail-catalog-db
MAIL_BUCKET R2 bucket mail-catalog-messages
WORKER_SELF_REFERENCE Service binding mail-catalog
EMAIL Email sending any verified address
ASSETS Static assets .open-next/assets

Variables

Name Value
PARSE_MAX_BYTES 26214400
MAIN_HOST mail.appneurox.com

Secrets

Required: EDIT_PASSCODE. Set each one on the Worker with npx wrangler secret put <NAME>, and in .dev.vars for local runs.

Hosts

Address Kind
mail.appneurox.com Custom domain

Scheduled jobs

  • 23 3 * * *

npm scripts

Script Runs
dev next dev
build next build
start next start
lint eslint .
typecheck tsc --noEmit
db:migrate:local wrangler d1 migrations apply mail-catalog-db --local
db:migrate:remote wrangler d1 migrations apply mail-catalog-db --remote
deploy opennextjs-cloudflare build && opennextjs-cloudflare deploy
preview opennextjs-cloudflare build && opennextjs-cloudflare preview
cf-typegen wrangler types --env-interface CloudflareEnv ./cloudflare-env.d.ts
Last updated 2 November 2026