Server identity comes from MOH_SERVER_SK_HEX (and optionally MOH_SERVER_SUB_HEX) in the environment.
Uses mohproto@0.2.1 from npm (npm:mohproto@0.2.1 in deno.json).
- Copy
.env.exampleto.envand setMOH_SERVER_SK_HEXto 64 hex chars (openssl rand -hex 32) - First run will cache the package from npm (needs network)
deno task devOr without a file:
MOH_SERVER_SK_HEX="$(openssl rand -hex 32)" deno task startThis app exports a default { fetch } from main.ts (local dev uses import.meta.main + Deno.serve).
- Create a project in the Deno Deploy dashboard or run
deno deploy create(interactive). - Set
MOH_SERVER_SK_HEXunder the project’s environment variables (same 64 hex chars as locally). - Deploy from this directory (non-interactive CI needs a token):
export DENO_DEPLOY_TOKEN="..." # Account → Access Tokens on dash.deno.com
deno deploy --org YOUR_ORG --app YOUR_APP --prod .Or run deno task deploy after deno login deploy in a terminal.