Skip to content

Migration Guides

Migration guides for switching Amplify's sandbox backend, provider configuration, and data storage.

Sandbox migration

Replace the default WebContainer sandbox with an alternative backend:

Database migration

Switch from SQLite to PostgreSQL for production deployments:

  1. Export current data from SQLite:
sh
sqlite3 amplify.db .dump > data.sql
  1. Convert to PostgreSQL format:
sh
pgloader sqlite://amplify.db postgresql://localhost:5432/amplify
  1. Update configuration:
yaml
database:
  type: postgresql
  url: postgresql://user:pass@localhost:5432/amplify
SQLite limitations

SQLite is fine for development and small deployments. For production with concurrent users, use PostgreSQL.

Provider migration

Switch from one LLM provider to another without losing conversation history:

  1. Conversations are stored independently of providers
  2. Switching providers only changes the API endpoint and model
  3. All previous messages remain accessible
  4. The new provider will use the existing conversation as context

No data migration is needed — just update the configuration:

yaml
# Switch from OpenAI to Anthropic
providers:
  anthropic:
    apiKey: ${ANTHROPIC_API_KEY}
    models: [claude-3.5-sonnet]
    default: true

See all supported providers