Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.getmaito.com/llms.txt

Use this file to discover all available pages before exploring further.

Environment Variables

Environment variables are app and package specific. Keep real secrets in local .env or .env.local files and never commit them.

Common Variables

NamePurpose
DATABASE_URLPostgreSQL connection string for API, workers, jobs, and database tools.
API_URLServer-side API base URL for app/frontends.
VITE_API_URLBrowser-visible API base URL.
SERVER_URLPublic web server URL.
PORTHTTP port for Bun/Hono services.
OPENAI_API_KEYAI model access for generation features and public tools.
CLERK_SECRET_KEYClerk server-side authentication secret.
VITE_CLERK_PUBLISHABLE_KEYClerk browser publishable key.
NEWSLETTER_INTERNAL_API_TOKENInternal token for newsletter public surfaces calling the API.
NEWSLETTER_ROOT_DOMAINRoot domain used for hosted newsletter sites.
NEWSLETTER_CLICK_TOKEN_SECRETSecret for newsletter click tracking tokens.
NEWSLETTER_UNSUBSCRIBE_TOKEN_SECRETSecret for unsubscribe tokens.
NEWSLETTER_REFERRAL_HASH_SECRETSecret for newsletter referral hashing.
SOCIAL_CREDENTIALS_KEY_B64Encryption key for stored social credentials.
SOCIAL_CREDENTIALS_KEY_IDActive social credential key identifier.
SOCIAL_X_API_KEYX/Twitter API key.
SOCIAL_X_API_SECRETX/Twitter API secret.
S3_URLS3/R2-compatible endpoint.
S3_REGIONS3/R2 region.
S3_ACCESS_KEYS3/R2 access key.
S3_SECRET_KEYS3/R2 secret key.
STRIPE_SECRET_KEYStripe server-side secret key.
STRIPE_WEBHOOK_SECRETStripe webhook signing secret.
MCP_ACCESS_TOKENToken used by MCP smoke tests.

Browser Variables

Only expose values to the browser when they are designed to be public. Browser variables should use the framework-required public prefix, such as VITE_.

Adding A Variable

When adding a required variable:
  1. Add runtime validation where the app already validates env.
  2. Update the relevant .env.example file if one exists.
  3. Document the variable here or in a more specific operations doc.
  4. Avoid adding production defaults for secrets.