Skip to main content
Bolt runs your app in a WebContainer in the browser — great for prototyping, but not a production environment. This guide moves it to a real EC2 instance with your own domain and database.

What gets migrated

  • React, Next.js, or Vite project source
  • Backend (Node.js/Express, if present)
  • Environment variables
  • Static assets

Prerequisites

Step 1 — Export from Bolt

Step 2 — Configure

1

Verify framework detection

Nometria detects your framework. Common Bolt stacks:
  • React + Vite (most common)
  • Next.js
  • React + Express (full-stack)
If your app has both a frontend and a backend, Nometria deploys both on the same EC2 instance with nginx proxying /api routes to your backend.
2

Set environment variables

Bolt doesn’t persist environment variables between sessions, so you’ll need to re-enter them:
# If using Supabase
VITE_SUPABASE_URL=https://xxxxxxxxxxxx.supabase.co
VITE_SUPABASE_ANON_KEY=eyJ...

# If using another database
DATABASE_URL=postgresql://...
3

Database

Bolt projects often use a database that was set up during the session. If you haven’t set up a permanent database yet:
  1. Select Create new Supabase project in Nometria
  2. Nometria provisions Supabase and injects credentials automatically
  3. You’ll need to set up your schema — if Bolt generated schema SQL, add it as a seed file
4

Domain and region

Set your custom domain or use the staging URL.

Step 3 — Deploy

Click Deploy and watch the build logs. For full-stack projects (frontend + backend), Nometria deploys both services and configures nginx automatically.

Step 4 — Keep building in Bolt

Enable the Chrome Extension for ongoing sync. While Bolt’s WebContainer isn’t a traditional builder (it runs a full dev environment), the extension captures your exported code on demand:
  1. Continue building in Bolt
  2. When you’re ready to sync changes to production, click Sync to Nometria in the extension
  3. The extension packages and pushes the current state to builder/latest
  4. Review the PR and merge to deploy

Post-migration checklist

  • App loads at your live URL
  • API routes respond correctly (for full-stack apps)
  • Database connected and queries working
  • Environment variables confirmed (no missing keys)
  • SSL active