Skip to main content
The Starter Kit operates in project mode, which configures it as an end-user application connected to the Cloud API.

Project mode configuration

Your Starter Kit always uses DEVKIT4AI_MODE=project:
.env.local

Environment tiers

Deploy your application across multiple environments:

Local development

Purpose: Testing and development on your machine Configuration:
.env.local
Access: http://localhost:3004

Staging

Purpose: Pre-production testing with production-like setup Configuration:
Access: Your staging URL (e.g., staging.yourapp.com)
Create a separate project in Cloud Admin for staging to isolate data.

Production

Purpose: Live application serving real users Configuration: Set via your hosting provider’s environment variable system:
Access: Your production domain (e.g., yourapp.com)
Never commit production credentials to version control.

Environment-specific features

Development mode features

Production optimizations

Configuration validation

The Starter Kit validates environment configuration on startup:
lib/deployment-mode.ts

Deployment checklist

1

Create environment-specific project

In Cloud Admin, create a project for each environment:
  • my-app-dev
  • my-app-staging
  • my-app-prod
2

Generate API keys

Generate and copy API keys for each project. Store securely.
3

Configure hosting provider

Set environment variables in Vercel, Netlify, or your chosen platform.
4

Deploy and test

Deploy to each environment and verify:
  • Authentication works
  • API calls succeed
  • Data is isolated between environments

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
Different API keys
  • Development: Unrestricted testing
  • Staging: Production-like restrictions
  • Production: Strict rate limits and security
Isolated user data
  • 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