Multi-Tenant Preview URLs
This demo shows how Vercel handles preview deployments for multi-tenant apps.
Select a Tenant
Each link below navigates to a tenant-specific subdomain. Notice how the URL changes.
The Problem
Preview URLs like my-app-git-feature.vercel.dev work great for single-tenant apps. But multi-tenant apps need to test changes for each tenant separately.
Without tenant-aware previews, you'd have to:
- • Manually switch tenant context
- • Deploy separate preview environments per tenant
- • Manually assign domains
The Solution
You can now add any dynamic prefix before --- in your preview URL, and Vercel will still route the request to the correct deployment. Your code receives the full hostname, so you can extract the prefix and handle routing however you want.
Note: This feature requires a custom deployment URL suffix (e.g., .vercel.dev). It does not work with the default .vercel.app suffix.
How It Works
acme---my-app-abc123.vercel.devmy-app-abc123.vercel.devhost: acme---my-app-abc123.vercel.dev→ /acmeglobex---my-app-abc123.vercel.devmy-app-abc123.vercel.devhost: globex---my-app-abc123.vercel.dev→ /globexBoth URLs route to the same deployment. Your code extracts the prefix and handles routing however you want—middleware, rewrites, or custom logic.