DylogDocs

Environments

URLs, configuration and secrets for dev, staging and production.

EnvironmentWorkerURLDatabaseDeploys
productionaccountshttps://accounts.dyloginc.workers.devaccountspush to master
stagingaccounts-staginghttps://accounts-staging.dyloginc.workers.devaccounts-stagingpush to staging
devaccounts-devhttps://accounts-dev.dyloginc.workers.devaccounts-devmanual workflow run

Production will move to accounts.dylog.ai once the DNS zone is on Cloudflare (see Deploying).

Per-environment configuration (wrangler.jsonc)

VariableMeaning
BETTER_AUTH_URLPublic origin; also the JWT issuer
RETURN_TO_ORIGINSComma-separated exact origins allowed for next and CORS
COOKIE_DOMAINCookie domain shared with sibling apps
EMAIL_FROMSender for outgoing mail
SUPPORT_EMAILShown in ban messages and used as reply-to

Secrets (GitHub environment → Worker secret)

SecretPurpose
BETTER_AUTH_SECRETSigns sessions and encrypts the JWT private keys; unique per environment
BETTER_AUTH_API_KEYBetter Auth Infra dashboard key (optional)
RESEND_API_KEYEmail delivery; absent means emails are logged
CLOUDFLARE_API_TOKENCI deploys and D1
CLOUDFLARE_ACCOUNT_IDCloudflare account

Bindings: AUTH_DB (D1), AUTH_RATE_LIMIT (rate limiting), WORKER_SELF_REFERENCE.

Fixture accounts (dev and staging only)

EmailPasswordRole
staff@dylog.aiDylogStaff!2026staff
owner@demo.dylog.aiDemoOwner!2026owner of demo (DEMO_PGKQPUYRXUK)
owner@ssd.dylog.aiSsdOwner!2026owner of ssd (SSD_JKLMNBVCXZA)

Production is never seeded. Its users arrive through invitations or a one-off import.

On this page