Skip to content

Deployment Targets

AuthHero is designed to run on multiple platforms. This guide covers deployment to different environments and their specific requirements.

Overview

AuthHero can be deployed to:

Coming Soon

Documentation for additional platforms:

  • Vercel
  • Google Cloud Platform (GCP)
  • Docker/Kubernetes
  • Azure
  • Railway, Render, Fly.io

Widget Assets

All deployment targets must serve the AuthHero widget assets. Learn more about widget asset configuration.

Quick Comparison

PlatformStartup TimeScalingCost ModelBest For
Local/NodeInstantManualFixedDevelopment, VPS
Cloudflare~0ms (warm)AutomaticPay-per-useGlobal edge
AWS Lambda + SST100-500msAutomaticPay-per-useServerless
AWS ECSInstantManual/AutoFixedLong-running

Quick Start with create-authhero

The fastest way to get started is using the CLI:

bash
npx create-authhero my-auth-server

Then select your deployment target:

  • Local (SQLite) - Development and VPS deployments
  • Cloudflare Workers (D1) - Edge deployment
  • AWS SST (Lambda + DynamoDB) - Serverless AWS deployment

Choosing a Deployment Target

Choose Cloudflare Workers if:

  • Global user base with low latency requirements
  • Pay-per-use cost model preferred
  • Simple deployment desired
  • Edge computing benefits needed

Choose AWS Lambda if:

  • Already on AWS ecosystem
  • Need complex AWS service integrations
  • Variable traffic patterns
  • Serverless architecture preferred

Choose AWS ECS/Fargate if:

  • Long-running processes required
  • Predictable, consistent traffic
  • Need full control over environment
  • Complex dependencies

Choose Local/VPS if:

  • Self-hosted requirement
  • Existing infrastructure
  • Cost predictability important
  • Simple deployment preferred

Database Considerations

Different platforms work best with different databases:

  • Cloudflare Workers → Cloudflare D1 (SQLite-compatible)
  • AWS → DynamoDB (via @authhero/aws adapter)
  • Local/VPS → PostgreSQL, MySQL, SQLite (via Kysely/Drizzle adapters)

See Adapters for database integration details.

Next Steps

  1. Choose your deployment target from the menu
  2. Follow the platform-specific setup guide
  3. Configure widget assets for your platform
  4. Review security best practices

Released under the MIT License.