Skip to content
MyAppBuilder
StableReference

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

KindExampleWhat it serves
Main sitemyappbuilder.appThe product website: information, sign-up links.
Builder studiostudio.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 appacme.myappbuilder.app (<slug>.<root domain>)One app, live, on its own hostname. Also reachable at studio…/a/acme.
Custom domainapp.acme.comThe same live app under a hostname the customer owns; verified by DNS records.
Example
                 +------------------------------+
  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 data

The 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.app never 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

  1. A request arrives with a hostname.
  2. If the hostname is the studio itself, it is served as the builder.
  3. If it ends with the platform root domain (acme.myappbuilder.app), the part before it is the slug and the live app is served.
  4. 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.app addresses 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).

Related

Was this helpful?