Environment variables
Locally, Pages CMS reads .env.local. In production, set variables in your host's secret store.
Generate secrets with openssl rand -base64 32. Keep BETTER_AUTH_SECRET and CRYPTO_KEY stable: changing them signs everyone out and makes stored credentials unreadable.
Required
GitHub App
Written for you by the setup helper.
Other sign-in methods
Optional. Collaborators without a GitHub account need at least one.
Other email providers need a plugin.
Collaborator invitations
These optional deployment settings accept positive integers. Daily counts reset at 00:00 UTC. Each batch must fit within both remaining daily allowances.
Database and administration
The instance default applies when there is no supported user, cookie, or browser language. Email to a recipient without a saved preference also uses it. Set this variable to the previous Admin default when upgrading; the database value is no longer read.
On Cloudflare Workers, the database is the DATABASE D1 binding, with an optional CACHE_DATABASE binding, instead of URLs.
Administrators can manage sign-in rules under Admin → Sign-in access. Add email addresses, domains, or regular expressions; an empty list permits all users to sign up and sign in. Rules apply to email-code, GitHub, and Google sign-ins. Changing a rule affects new sign-ins; existing sessions remain active until revoked. Include an administrator's email or domain before restricting the list: ADMIN_EMAILS grants Admin access but does not bypass sign-in rules.
The Admin dashboard shows 10 sign-in rules, users or repositories per page in each list. Use the corresponding search field to find a specific entry.
Cache tuning
The defaults suit most instances. Times are in minutes unless the name ends in _MS.
To clear a repository’s cache, enable settings.cache and use its Cache page.