Getting Started
Configuration
Environment variables and runtime configuration layers.
Configuration layers
- Frontend runtime (
apps/ship) - API runtime (
apps/ship-api) - Auth and OAuth
- Billing and webhooks
- Storage and AI providers
Critical variables
- Auth:
BETTER_AUTH_SECRET,BETTER_AUTH_URL,GITHUB_*,GOOGLE_* - Data:
DATABASE_URL,REDIS_URL - Billing:
STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET - Stripe prices:
STRIPE_PRICE_SUB_*,STRIPE_PRICE_CREDITS_*(or use lookup-key fallback via seededlookup:xxxrefs) - Storage:
BETTER_UPLOAD_PROVIDER,S3_* - Public URLs:
NEXT_PUBLIC_SITE_URL,NEXT_PUBLIC_SERVER_URL
Safety checklist
- Do not store production secrets in plain text files.
- Keep callback URLs aligned with the deployment domain.
- Verify staging and production webhook secrets are isolated.