Project mode configuration
Your Starter Kit always usesDEVKIT4AI_MODE=project:
.env.local
Environment tiers
Deploy your application across multiple environments:Local development
Purpose: Testing and development on your machine Configuration:.env.local
http://localhost:3004
Staging
Purpose: Pre-production testing with production-like setup Configuration:staging.yourapp.com)
Production
Purpose: Live application serving real users Configuration: Set via your hosting provider’s environment variable system:yourapp.com)
Environment-specific features
Development mode features
Production optimizations
Configuration validation
The Starter Kit validates environment configuration on startup:lib/deployment-mode.ts
Deployment checklist
Create environment-specific project
In Cloud Admin, create a project for each environment:
my-app-devmy-app-stagingmy-app-prod
Environment isolation
Each environment should have: Separate projects in Cloud Admin- Prevents test data mixing with production
- Allows independent API key rotation
- Enables environment-specific permissions
- Development: Unrestricted testing
- Staging: Production-like restrictions
- Production: Strict rate limits and security
- Register test users in dev/staging
- Never use production data in testing
Next steps
Environment Variables
Complete variable reference
Deployment Guides
Deploy to hosting platforms

