Skip to content

Secrets

| Name | What it is for | How | | --- | --- | --- | | CMS_SECRET | Signs sessions and preview links. 32+ random characters. Changing it signs everyone out. | openssl rand -base64 32 \| wrangler secret put CMS_SECRET | | CMS_SETUP_TOKEN | Required in production: without it nobody can create the first admin at /admin/setup. Delete it afterwards. | wrangler secret put CMS_SETUP_TOKEN | | CMS_S3_ENDPOINT, CMS_S3_BUCKET, CMS_S3_ACCESS_KEY_ID, CMS_S3_SECRET_ACCESS_KEY | Only with upload.clientUploads or upload.signedDownloads (signed R2 URLs). An R2 token with read and write access to that bucket. | wrangler secret put … | | TURNSTILE_SECRET_KEY | Only with the Form Builder plugin and Turnstile. | wrangler secret put … |

They never go in wrangler.jsonc or the repository. Locally they live in .dev.vars (see .dev.vars.example).