Custom Subdomains
Subdomain Format
Tunnel URLs follow this pattern:
https://{subdomain}.expose.{your-domain}For example:
https://myapp.expose.yourdomain.comhttps://api-preview.expose.yourdomain.com
Choosing a Subdomain
When exposing a service, enter your desired subdomain:
- Click Expose on a running service
- Enter your subdomain (e.g.,
myapp) - Click Done
Naming Rules
| Rule | Example |
|---|---|
| Lowercase letters | myapp ✓ |
| Numbers | app2 ✓ |
| Hyphens (not at start/end) | my-app ✓ |
| 3-63 characters | app ✓ |
Invalid examples:
MyApp— uppercase not allowed-myapp— can’t start with hyphenmy_app— underscores not allowedab— too short
Default Subdomains
If you don’t specify a subdomain, Expose suggests one based on:
- Project name (sanitized)
- Framework name
- Directory name
Reserved Subdomains
Some subdomains may be reserved:
api— Often reserved for the Expose APIwww— Common web convention- Admin-reserved names
If a subdomain is reserved, you’ll see an error when trying to use it.
Subdomain Availability
Subdomains are unique per user. If another user has myapp, you can still use it because your domain is different.
However, if you already have myapp active, you can’t create a second tunnel with the same subdomain until you disconnect the first.
Persistent Subdomains
By default, subdomains are temporary — they’re released when you disconnect.
To keep a subdomain reserved (coming soon):
- Go to Settings → Subdomains
- Add subdomains you want to reserve
- These won’t be available to other users
Project Groups
When exposing a project group, subdomains are auto-generated:
Group: my-fullstack-app├── frontend → my-fullstack-app-frontend.expose.domain.com├── backend → my-fullstack-app-backend.expose.domain.com└── docs → my-fullstack-app-docs.expose.domain.comTips
Use Descriptive Names
✓ staging-checkout-flow✓ demo-2024-01✓ client-review
✗ test✗ temp✗ xxxInclude Context
For client demos:
acme-demo.expose.domain.comFor feature branches:
feature-auth.expose.domain.comKeep It Short
Shorter subdomains are easier to share:
✓ api-v2✗ my-super-awesome-api-version-2-beta