Configuring Services

DW works with various external services for storage, email, and authentication.

Cloudflare R2 (File Storage)

  1. Create an R2 bucket with a custom domain
  2. Generate API tokens from the R2 buckets page
  3. Add to .env:
S3_KEY="your-access-key"
S3_SECRET="your-secret-key"
S3_BUCKET="your-bucket-name"
S3_ENDPOINT="https://your-account-id.r2.cloudflarestorage.com"
S3_DOMAIN="https://media.yourdomain.com"

Email (SMTP)

Configure your SMTP provider credentials in .env. Works with services like Mailgun, Resend, or any SMTP provider.

OAuth (Google)

Set up Google OAuth credentials for social login. See the Better-Auth documentation for setup instructions.