Skip to main content

What's new

Import a Rocket app into 1904, and it asks for the keys the export left out

The Rocket.new move kit card in 1904 at the step for real keys: DATABASE_URL marked Managed by 1904, then STRIPE_SECRET_KEY and OPENAI_API_KEY marked Required, each with a box to paste the real value and a Skip for now button, above Save keys to App Configuration.

The code is the part of a Rocket app that leaves easily. Sync it to GitHub and you have it. What stays behind is everything the code needs to run: the real API keys, the database, and the addresses your sign-in and payment webhooks point at. Rocket shuts down on December 31, so 1904's import now recognizes a Rocket repository and walks you through those leftovers.

Start with the import

On Bring your app to 1904, pick the repository under Choose from my repositories. If 1904 sees the signs of a Rocket export, a notice reading Rocket.new project detected appears before you import, with how confident it is. Click Import app. The receipt then carries a Rocket.new move kit card. Its first step shows the small change your dev server settings need so previews load in 1904, as a diff you can read before anything is touched. A repository 1904 doesn't recognize imports the usual way.

The keys the export left as placeholders

An exported .env file holds placeholders where your real keys were. Under Supply your real keys, the card lists each variable that still holds one, marks the ones your app needs as Required, and gives you a box to paste the real value. Save keys to App Configuration stores them encrypted, and they're never written to your repository. Skip for now leaves one for later. DATABASE_URL is marked Managed by 1904, because the database comes next. Copy the real values out of Rocket's environment settings while Rocket is still up. After December 31 there's nowhere to copy them from.

The database

If your app keeps its data in a Postgres database, such as a Supabase project, paste that database's connection string under Move database to 1904 internal Postgres. Preview migration plan connects read-only and shows what would move. Migrate into 1904 Postgres copies the structure of your tables, then the data, then compares the row count of every table in the old database with the copy and shows you the report. The connection string is used for the move and isn't saved. The card also lists what isn't carried over automatically: Supabase's own sign-in users and sessions, stored files, edge functions, and row-level rules tied to Supabase roles. Those you move by hand, or with an agent task once the code is in.

Before you switch the domain

The last step scans the code for what still points at Rocket and lists what to change outside it: Rocket addresses written into the code, your sign-in provider's redirect addresses, Google and GitHub sign-in callbacks, and Stripe webhooks. When those are done, it links to adding your custom domain. A Rocket phone app built with Flutter is recognized as a phone app, and the key prompts and the database move work the same way.

The Rocket migration guide on 1904.ai has every step, starting with what to copy out of Rocket first.

← All posts

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.