v1.0.0
Configuration Examples
Real-world configuration examples for popular frameworks. Set up once, run on every deploy.
LastMile Cloud
RECOMMENDEDDeploy any app to LastMile Cloud with zero configuration. Database, SSL, and CDN included:
TERMINAL
$ lastmile analyze > Scanning codebase... > [SECURITY] Hardcoded API key in src/lib/api.ts > [GIT] .env file committed to repository > READINESS_SCORE: 52/100 $ lastmile fix > Extracting secrets to .env > Adding .env to .gitignore > Generating .env.example > READINESS_SCORE: 88/100 $ lastmile ship > Deploying to LastMile Cloud... > Database provisioned > SSL certificate issued > CDN configured > https://my-app.lastmile.dev
Alternative: Next.js + Vercel
Deploy to Vercel instead using the --vercel flag:
TERMINAL
$ lastmile ship --vercel
> Deploying to Vercel...
> Environment variables injected
> https://my-app.vercel.appAlternative: Express.js + Railway
Deploy to Railway instead using the --railway flag:
TERMINAL
$ lastmile ship --railway
> Deploying to Railway...
> Database provisioned
> https://api.railway.appComplete Workflow
The full LastMile workflow from prototype to production:
TERMINAL
$ npm install -g @lastmile/cli $ lastmile login $ lastmile analyze # Scan for gaps $ lastmile fix # Auto-generate fixes $ lastmile configure # Set up environment $ lastmile ship # Deploy to LastMile Cloud
Looking for more examples?
VIEW_GITHUB_EXAMPLES