Automated Migration Process
Clodo Framework provides automated migration tools that analyze your existing Wrangler project and generate a complete migration plan. The process is designed to be safe, reversible, and comprehensive.
Step 1: Install Clodo Framework
npm install -g @clodo/framework
Step 2: Analyze Your Project
Navigate to your Wrangler project directory and run the analysis:
cd your-wrangler-project
clodo migrate analyze --source wrangler
Step 3: Review Migration Plan
Clodo will generate a detailed migration plan showing:
- Configuration changes needed
- Code modifications required
- Dependencies to update
- Potential compatibility issues
Step 4: Execute Migration
clodo migrate execute --plan migration-plan.json
Step 5: Test and Deploy
After migration, thoroughly test your application:
- Run your existing test suite
- Test all API endpoints
- Verify data integrity
- Deploy to staging environment
Key Differences: Wrangler vs Clodo
Configuration
Wrangler: wrangler.toml
Clodo: clodo.config.js (more flexible)
Routing
Wrangler: Manual route configuration
Clodo: Automatic routing with middleware
Development
Wrangler: Basic tooling
Clodo: Hot reload, debugging, testing
Common Migration Challenges
Environment Variables
Clodo uses a different naming convention for environment variables. The migration tool automatically handles this conversion.
Bindings
KV, D1, and R2 bindings are configured differently. Clodo provides helper functions to simplify binding usage.
Middleware
If you're using custom middleware, it may need to be adapted to Clodo's middleware system.