Deploying applications on Unkey is in public beta. To try it, select
Projects in the dashboard sidebar and create a project. Deployed
resources are free until August 1, 2026. We’re eager for feedback, so let us
know what you think on Discord,
X, or email
support@unkey.com.
Production and preview
Every app gets two environments:
Unkey creates both environments automatically when you create a project. You don’t need to set them up manually.
Custom environments beyond production and preview are not yet available.
Branch mapping
When you connect a GitHub repository, Unkey maps branches to environments:- Pushes to the default branch (typically
main) deploy to production. - Pushes to any other branch deploy to preview.
Environment-scoped configuration
Configuration is scoped per environment, so production and preview can differ:- Variables: Different database URLs, API keys, and feature flags for each environment
- Custom domains: Production might use
api.acme.comwhile preview uses auto-generated domains - Regions and instances: Run production in multiple regions with higher instance counts, and preview in a single region
- Gateway policies: Apply stricter rate limits or authentication rules in production
Sticky domains
Each environment has a sticky domain that always points to the latest deployment in that environment:Deployments per environment
An environment can have many deployments, but only one is active at a time. In production, when a new deployment goes live, the previous one stops after 30 minutes. Stopped deployments are available for rollbacks, but take longer to serve traffic because their containers need to start again. In preview environments, deployments stay running as long as they receive traffic. Idle preview deployments (zero requests for 1 hour) automatically stop to free up resources.Next steps
Variables
Configure environment-specific variables
Custom domains
Serve your app from your own domain