Skip to main content

Guides Migration

Move from Rocket.new to 1904

Rocket.new stops building Dec 6, 2026 and shuts down Dec 31, 2026. Move your code, keys, Postgres data, and domain to 1904 — a cloud control plane for coding agents with a built-in software factory.

On this page
  1. Sync to GitHub and copy your real keys
  2. Import into 1904 and review dev-server settings
  3. Store your real keys in 1904 App Configuration
  4. Move your database into 1904’s internal Postgres
  5. Check auth callbacks, OAuth, and webhooks
  6. Switch your custom domain in 1904
  7. Moving a Rocket Flutter mobile app
Troubleshooting

What this move covers

1904 is a cloud control plane for coding agents with a built-in software factory. When you import a Rocket.new repository into 1904, the move kit helps you keep your repository, adjust dev-server host and port settings, supply real API keys in encrypted App Configuration, copy your Postgres schema and data into 1904’s own internal Postgres server, verify auth and webhook callbacks, and cut over your custom domain. Flutter projects route to 1904’s phone-app path.

01 / In Rocket.new — Before Dec 31, 2026

Sync to GitHub and copy your real keys

Export your code and record every live secret before Rocket.new goes offline on December 31, 2026. GitHub sync preserves commit history; ZIP download gives you a snapshot if you prefer to push to a fresh Git repository yourself.

  1. Sync your project to GitHub: Open your Rocket.new project, open the GitHub / code export control, connect GitHub, and push your latest changes (exact Rocket UI labels and sync steps across plans are unverified against a live export). For Next.js projects, third-party migration guides report that Rocket pushes to a rocket-update branch and opens a pull request into main (unverified across all Rocket frameworks) — merge that PR so main has your latest code.
  2. Or download the ZIP archive: Download the project ZIP from Rocket.new (exact export archive contents are unverified), unzip it locally, initialize Git (git init), and push it to a private GitHub repository.
  3. Copy your real keys out of Rocket now: Exported .env (web) and env.json (mobile) template files contain placeholder values rather than your live secrets (file names and placeholder formats are unverified across all Rocket templates). In Rocket.new, open your project’s Settings › Environment (both staging and production tabs; exact menu labels unverified) and copy every real API key — Stripe, AI providers (OpenAI, Anthropic, Gemini), email/SMS, and OAuth client secrets — into your password manager before December 31, 2026.
  4. Record your database connection string: If your Rocket app uses Supabase, open your Supabase project dashboard under Project Settings › Database and copy the direct PostgreSQL connection string so 1904 can read your schema and data into 1904’s internal Postgres.

Before moving on Confirm your latest code is on GitHub and your real third-party API keys are saved safely outside Rocket.new. Never commit real keys into Git.

02 / In 1904

Import into 1904 and review dev-server settings

  1. Create a 1904 workspace or sign in to import an existing repository.
  2. Choose Choose from my repositories (recommended to keep working in your GitHub repo through branches and pull requests) or Copy from a Git link to import into a fresh private repository.
  3. 1904 checks multiple signals — such as a rocket-update branch, a Vite dev server pinned to port 4028 (unverified across all templates) with Rocket-only allowedHosts (for example .builtwithrocket.new — unverified across all exports), @dhiwise/component-tagger (unverified across all exports), and .env / env.json placeholder templates (unverified across all exports) — to recognize Rocket.new projects automatically without blocking normal imports.
  4. Click Import app. On the receipt, open the Rocket.new move kit card to inspect the minimal dev-server diff for web apps: binding 0.0.0.0, reading process.env.PORT with 1904’s assigned port fallback, and replacing Rocket-only allowedHosts restrictions so 1904 previews load cleanly.
Example minimal Vite dev-server change
  server: {
-   port: 4028,
+   port: Number(process.env.PORT) || 3000,
    host: "0.0.0.0",
-   strictPort: true,
-   allowedHosts: [".amazonaws.com", ".builtwithrocket.new"]
+   strictPort: false,
+   allowedHosts: true
  }
03 / In 1904

Store your real keys in 1904 App Configuration

1904 parses the exported .env or env.json templates (the full vocabulary of Rocket placeholder strings across every template is unverified, so 1904 matches common placeholder patterns and lets you review every detected variable) and prompts for your real values directly in the move kit.

  • Encrypted storage only: Values are saved exclusively through 1904’s encrypted App Configuration store and injected at runtime. They are never written to your Git repository, logs, analytics, or agent transcripts.
  • Platform-managed database URL: DATABASE_URL is provisioned and injected automatically by 1904’s internal Postgres server; you do not need to set it manually.
  • Ready gate: 1904 marks which required keys are still missing and holds the move kit’s ready state until each required key is supplied or explicitly skipped.
04 / In 1904

Move your database into 1904’s internal Postgres

Rather than leaving your app split across external Supabase hosting, 1904 provisions a dedicated internal PostgreSQL database and role for your imported app inside your environment.

  1. In the Rocket.new move kit, paste your source PostgreSQL connection string into the masked source field (used transiently over HTTPS for the migration only — never saved to disk or logged).
  2. Click Preview migration plan first. 1904 connects to the source database strictly in read-only mode, inspects your application schemas, warns you if another imported Rocket app already pointed at the same source database, and confirms your newly provisioned 1904 target database is empty (refusing to run against a non-empty target unless you explicitly confirm).
  3. Click Migrate into 1904 Postgres. The migration runs non-destructively and resumable in strict order: allowlisted extensions → schema first (tables, indexes, constraints, sequences) → table data → sequence resets → row-count verification report comparing source vs target rows per table.

What is not carried over automatically Supabase system schemas (auth, storage, realtime), Supabase Auth users and sessions, Supabase Storage buckets and files, Supabase Edge Functions, and Row-Level Security policies bound to Supabase roles (authenticated, anon, service_role, auth.uid()) are skipped and listed in the report. Port auth to app-level authentication in your 1904 app, move uploaded files into SHIPT_APP_DATA_DIR or object storage, and convert Edge Functions into standard API routes.

05 / Before DNS Cutover

Check auth callbacks, OAuth, and webhooks

Before pointing your custom domain at 1904, run the pre-cutover checklist in the move kit so logins and payments do not break when Rocket.new goes offline:

  • Hardcoded Rocket domains: Remove any remaining *.builtwithrocket.new or rocket.new links flagged by the scan.
  • Auth Site URL and redirects: Update your auth provider’s Site URL and allowed redirect URLs (for password resets, magic links, and OAuth callbacks) to your 1904 address or custom domain.
  • Google and GitHub OAuth callbacks: Add your 1904 callback URLs in Google Cloud Console and GitHub OAuth App settings before removing the old Rocket URLs.
  • Stripe and external webhooks: Update Stripe webhook endpoints (and any email/SMS webhooks) to your 1904 URL and store the new webhook signing secret in 1904 App Configuration.
06 / In 1904

Switch your custom domain in 1904

Once your app runs cleanly on its 1904 address and the pre-cutover checks pass, open your app’s Settings › Domains & access page in 1904. Add your custom domain and create the two DNS records shown there; 1904 verifies ownership and provisions HTTPS certificates and renewals automatically. See the custom domain guide and domain documentation for details.

07 / Mobile Apps

Moving a Rocket Flutter mobile app

Rocket.new generates mobile apps using Flutter (Dart) with a pubspec.yaml declaring the Flutter SDK and configuration in env.json (exact Flutter project layout across all Rocket versions is unverified). When 1904 detects pubspec.yaml with the Flutter SDK during import, it routes the project directly to 1904’s phone-app path (iPhone and Android) instead of the web dev-server path, skipping web Vite rewrites while still surfacing env.json placeholder key prompts and database migration steps.

Learn more in the mobile app guide and Mobile apps FAQ.

If you get stuck

My Rocket repo uses Next.js instead of Vite

That works too. 1904 does not hard-fail when vite.config.* is absent: if a rocket-update branch or placeholder .env templates are detected, you still get the key prompts, internal Postgres migration, and pre-cutover checklist.

Two of my Rocket apps shared one Supabase database

1904 computes a non-secret fingerprint of each source database host and name and warns you when two imported apps point at the same source. Each 1904 app receives its own isolated internal PostgreSQL database so apps cannot overwrite each other.

My app still imports Supabase client SDK code

After migrating your tables into 1904’s internal Postgres, open an agent task in 1904 Agents to replace Supabase client queries with direct PostgreSQL queries using DATABASE_URL and review the diff before merging.

References and verification notes

Verification note: Only the December 6 build cutoff and December 31 shutdown dates are verified directly via the TechCrunch and Moneycontrol citations above. All Rocket export mechanics — including the rocket-update branch, Vite port 4028, allowedHosts entries, @dhiwise/component-tagger, .env / env.json template files and placeholder formats, GitHub sync/ZIP download UI flow, and Flutter export layout — are unverified against a live Rocket export archive; 1904’s importer treats each signal as advisory so normal imports are never blocked.