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:
- Export current data from SQLite:
sh
sqlite3 amplify.db .dump > data.sql
- Convert to PostgreSQL format:
sh
pgloader sqlite://amplify.db postgresql://localhost:5432/amplify
- 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:
- Conversations are stored independently of providers
- Switching providers only changes the API endpoint and model
- All previous messages remain accessible
- 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