Subdomain and path address
Every app gets a free address made from its slug (the short name in Settings › General › App address). The app is reachable in two ways: a subdomain (<slug .<root domain ) and a path address (<builder address /a/<slug ). Both show the same live app; the path address works everywh
Every app gets a free address made from its slug (the short name in Settings › General › App address). The app is reachable in two ways: a subdomain (<slug>.<root domain>) and a path address (<builder address>/a/<slug>). Both show the same live app; the path address works everywhere, even when wildcard DNS is not set up.
When to use
- Share your app right after publishing, without buying a domain.
- Find out what the address will be before publishing.
The two addresses
| Address | Example | Notes |
|---|---|---|
| Subdomain | https://northside-repair.apps.example.com | Needs the platform's wildcard DNS and certificate. Shown as "Not configured" when the platform has no root domain. |
| Path address | https://studio.example.com/a/northside-repair | Always works. This is the link shown first on the publish success screen. |
| Staging | https://studio.example.com/s/northside-repair | The staging deployment (test data). |
On a local development machine the root domain is localhost:3000, so the addresses look like http://northside-repair.localhost:3000 and http://localhost:3000/a/northside-repair.
Choosing the slug
- Open Settings › General › App address.
- Type the address: lowercase letters, numbers and hyphens, 2–60 characters, starting and ending with a letter or number. Spaces and underscores become hyphens as you type.
- Click Save address and confirm. If the app is live, the dialog warns that links and bookmarks to the old address stop working and that installed home-screen apps may need to be re-added.
- The Subdomain URL and Path URL fields update; use the copy buttons.
App address: northside-repair . apps.example.com Subdomain URL: https://northside-repair.apps.example.com Path URL: https://studio.example.com/a/northside-repair
The slug is also used as the default published address: northside-repair → northside-repair.apps.example.com.
Where the addresses appear
- Settings › Domains › Free address: both addresses with copy and open buttons, plus the staging address when a staging deployment exists; a badge shows Live, Unpublished or Not published yet.
- Publish dialog: the URL row.
- Versions › Deployments: the Production and Staging cards link to the active release.
Common mistakes
- Changing the slug after printing it on flyers. The old address stops working immediately; there is no automatic redirect.
- Using capital letters or spaces. They are converted; check the final value before saving.
- Sharing the subdomain when the platform shows "Not configured". Use the path address instead.
Advanced
Hosted subdomains are routed by src/proxy.ts: a request whose host ends with .<APP_ROOT_DOMAIN> is rewritten to /a/<slug>/… with an x-mab-host-mode header so that links, the web app manifest and the service worker use / as the base path instead of /a/<slug>. The slug is validated by the update_project command (^[a-z0-9][a-z0-9-]*[a-z0-9]$). URLs are built by appPublicUrl() and appPathUrl() in src/server/env.ts.