Skip to main content

Emergent · Owned origin after Deploy

Emergent to production: keep the agent-built app, stop treating Emergent Deploy as the finish line

Emergent’s coding-agent loop can ship a full React + FastAPI + MongoDB app that boots on `*.preview.emergentagent.com` and later on Deploy at `*.emergent.host`—two different hosts, two different readiness bars. Production starts only after GitHub Save/Push lands under an org remote, preview MongoDB is treated as non-prod, and secrets are injected by a host you name (or by Emergent Deploy as an explicit, credit-budgeted choice). Expo Mobile Agent builds follow the same rule: EAS and store accounts belong to the org, not the agent workspace chat. You keep the journeys the agent already proved; you stop equating a green preview—or a credit-burned Deploy—with owned release authority.

30 min · senior team · leave with a clear next step

Citation-ready answer

Answer you can cite

CodeCross LLC certifies emergent-to-production only after a React plus FastAPI plus MongoDB (or Expo) tree boots from GitHub Save/Push on a clone that never opened the agent. Preview on `*.preview.emergentagent.com` may idle-sleep; `.emergent.host` Deploy spends hosting credits. Neither is the finish line. Pass when Auth lists a company hostname, preview MongoDB is off the advertised cluster, and Redeploy is optional.

What Emergent Deploy hides

A green .emergent.host URL is not a stack you can operate

Emergent compresses agent generation into managed hosting. Real traffic exposes FastAPI that only exists on Emergent’s cluster, preview MongoDB mixed with production, and a Redeploy click that is the only rollback.

  • Secrets live only in the Emergent workspace

    Collaborators rotate keys by opening the agent UI. A second engineer cannot inject destination secrets from a clean clone, so on-call becomes “who has Emergent admin.”

  • MongoDB and FastAPI only exist on Emergent’s cluster

    Preview may sleep after idle. Deploy burns hosting credits. Neither proves you own the process model off `.emergent.host`.

  • Rollback means Redeploy from the agent UI

    If the only reverse is “open Emergent and Redeploy,” you do not have a release. The GitHub tree plus CI must restore a named artifact.

  • Closing the workspace stops the live origin

    Availability that requires Emergent-hosted compute is still a lab unless you document Emergent Deploy as an explicit production choice.

The Save/Push-to-origin pass we actually run

Map Emergent env, then cut over off .emergent.host

Keep the agent-proved journeys. Move ship authority to org GitHub and a host that injects env. Emergent remains an agent workshop until that origin is proven—or until managed Deploy is a written decision.

01

Save/Push the React/FastAPI (or Expo) tree into org GitHub

Lockfiles pinned for both runtimes. A teammate who never opened Emergent can install and start. Document preview DB versus production DB—they are separate on Emergent.

02

Remap Emergent env names onto destination secrets

Copy names, mint fresh values, and stop treating the workspace as the production vault. Preview credentials stay off the advertised origin.

03

Pin Auth and webhooks to the production domain

Allowlists list only the origin you advertise. Dual-allow `.preview.emergentagent.com` and `.emergent.host` only during the cutover window.

04

Prove signup → session → write (and a FastAPI route) with Emergent closed

Logs tag a CI release. Confirm Mobile Agent / EAS paths use org Apple/Google accounts if store-bound. If those hold, Deploy is optional.

How to

Move an Emergent agent-built app onto an origin you control

GitHub Save/Push, destination secrets, and a named host. Success is the primary journey completing after you close the Emergent workspace—or documenting Emergent Deploy as the chosen prod.

  1. Step 01

    Treat preview and Deploy as a lab, not the finish line

    Keep the agent-built journeys if they still match what operators will buy. Do not treat a green `.emergent.host` URL or a sleeping preview as durable ownership.

  2. Step 02

    Save/Push source into org GitHub with pinned lockfiles

    Pin React and FastAPI (or Expo). Document preview DB versus production DB. Confirm Mobile Agent / EAS uses org store seats if mobile ships.

  3. Step 03

    Map Emergent env names onto the destination host

    Mint new secret values. Split preview from production. Never commit Emergent workspace secrets.

  4. Step 04

    Point Auth redirects at the production domain

    Remove Emergent hostnames from allowlists only after login, writes, and FastAPI health pass on the advertised origin.

  5. Step 05

    Run the core journey with the Emergent workspace closed

    Signup, session, one write, and any FastAPI route on the named domain. Confirm logs tag your CI. Emergent Deploy is then optional for availability.

Before you book

Practical answers

Prefer writing? Send project details and we reply within one business day.

How should teams read `*.preview.emergentagent.com` versus `*.emergent.host` before calling anything “prod”?

Preview is the agent’s scratch origin: it may sleep after idle, shares a preview MongoDB that is not the Deploy database, and exists to validate agent edits. Deploy at `*.emergent.host` is managed hosting on Emergent credits—a live origin, still not proof you own the GitHub remote or can roll back without Redeploy from the workspace. Treat preview as lab, Deploy as optional managed runtime, and owned CI from Save/Push as the path that survives vendor review.

When does GitHub Save/Push become the real production gate for an Emergent build?

On plans that support it (Standard+), Save/Push is the export path: React frontend, FastAPI backend, lockfiles, and Expo config leave the coding-agent workspace for an org remote. Until that remote builds and starts on a clean runner with destination secrets, you are still shipping from Emergent’s control plane. Pin Node/Python versions the agent assumed, document preview DB vs production DB, and refuse cutover while Save/Push is optional or stale.

What does a React + FastAPI + MongoDB cutover look like after the agent already “works”?

Clone the org repo, inject production secrets (never reuse preview Mongo URLs), run FastAPI health and the React build, then execute signup → session → write against the custom domain. Confirm Auth callbacks list only that domain, CORS no longer allows preview hostnames, and logs tag a CI release—not “Redeploy in Emergent.” If Mobile Agent ships stores, verify EAS uses org Apple/Google credentials. Success is the same UX the agent proved, on infrastructure the company can name.

How do managed hosting credits change the keep-Deploy vs leave-Deploy decision?

Credits make Emergent Deploy convenient while agent iteration is hot—and expensive or opaque when traffic spikes or idle previews linger. Budget credit burn explicitly if production stays on `.emergent.host`; prefer org GitHub + external host when second-engineer deploys, rollback, and invoice predictability matter. Document the choice so on-call does not discover mid-incident that only Emergent Redeploy works and credits are the production bill.

Make Emergent Deploy optional for availability.

Bring the GitHub remote and the preview-versus-production DB story. We will say whether this week is an owned full stack — or another Redeploy pretending to be production.

Prefer writing? Send project details on the contact page.

Book a Discovery Call