Domain model — builder, apps and custom domains
MyAppBuilder uses several web addresses, and it helps to know which is which: the main site where you learn about the product, the builder studio where you sign in and build, the published app address every app gets for free, and an optional custom domain you own. This page expla
MyAppBuilder uses several web addresses, and it helps to know which is which: the main site where you learn about the product, the builder studio where you sign in and build, the published app address every app gets for free, and an optional custom domain you own. This page explains the difference with concrete examples.
The four kinds of address
| Kind | Example | What it serves |
|---|---|---|
| Main site | myappbuilder.app | The product website: information, sign-up links. |
| Builder studio | studio.myappbuilder.app (the platform's APP_URL) | The editor you sign in to, your projects, the documentation center, previews (/preview/…), staging (/s/<slug>) and the path address of every app (/a/<slug>). |
| Published app | acme.myappbuilder.app (<slug>.<root domain>) | One app, live, on its own hostname. Also reachable at studio…/a/acme. |
| Custom domain | app.acme.com | The same live app under a hostname the customer owns; verified by DNS records. |
+------------------------------+
Builder user → | studio.myappbuilder.app | sign in, build, publish
| /a/acme (live, path) |
| /s/acme (staging) |
| /preview/<id> (draft) |
+------------------------------+
|
Customer → acme.myappbuilder.app ──┐ same live app,
Customer → app.acme.com (custom) ──┘ live dataThe exact hostnames depend on how the platform is deployed; the builder shows your real addresses in Settings › General and Settings › Domains.
Why apps are separate from the studio
- Security: the builder session cookie belongs to the studio host; each published app has its own sign-in cookie on its own host. A customer signing in to
acme.myappbuilder.appnever touches builder accounts. - Branding: customers see the app's name, icon and (with a custom domain) your own hostname.
- Installability: a Progressive Web App installs per hostname, with its own icon and start page.
Local development
When MyAppBuilder runs on a developer's machine, everything uses localhost: the studio is http://localhost:3000, apps are http://localhost:3000/a/<slug> and, because the root domain defaults to localhost:3000, subdomains look like http://acme.localhost:3000. Custom domains cannot be verified locally.
How requests find the right app
- A request arrives with a hostname.
- If the hostname is the studio itself, it is served as the builder.
- If it ends with the platform root domain (
acme.myappbuilder.app), the part before it is the slug and the live app is served. - Otherwise the hostname is looked up among verified custom domains; if found, that project's live app is served, else "not found".
Common mistakes
- Using the studio address as the customer-facing link. The
/a/<slug>path address works fine, but the subdomain or a custom domain looks more professional. - Expecting the custom domain to open the builder. Custom domains only serve the published app.
- Adding
myappbuilder.appaddresses as custom domains. They are refused: the free subdomain is already included.
Advanced
Platform configuration: APP_URL (studio origin), APP_ROOT_DOMAIN (root for hosted apps; needs wildcard DNS and a wildcard certificate), APP_EDGE_IP (A record for apex custom domains). Routing lives in src/proxy.ts: hosts other than the builder are rewritten to /a/<slug> or /sites/<host> with the x-mab-host-mode header so base paths resolve to /. See docs/DEPLOYMENT.md for proxy requirements (forward Host, X-Forwarded-Host and X-Forwarded-Proto).