Deploy Your App
Learn how to publish your INSTROC app to the web.
Quick Deploy
The fastest way to deploy:
- Click the Publish button in the editor header
- Choose your subdomain (e.g.,
myapp.instroc.app) - Click Deploy
- Your app is live in seconds!
Deployment Options
INSTROC Hosting (Default)
Your app is hosted on our global CDN with:
- Instant deployment - Live in seconds
- Free SSL - HTTPS enabled automatically
- Global CDN - Fast loading worldwide
- Automatic scaling - Handles traffic spikes
Default URL format: yourproject.instroc.app
Custom Domain
Connect your own domain for a professional presence:
- Click Settings in the publish dialog
- Enter your domain (e.g.,
www.yoursite.com) - Add the DNS records shown
- Wait for verification (usually < 5 minutes)
- Deploy
See Custom Domains for detailed instructions.
What Gets Deployed
When you deploy, INSTROC packages:
- Frontend - Your React application
- Backend - API routes and serverless functions
- Database - Your data and schema
- Assets - Images, fonts, and files
Everything needed for your app to run.
Deployment Status
After clicking Deploy, you'll see:
| Status | Meaning |
|---|---|
| Building | Code is being compiled |
| Deploying | Files are being distributed to CDN |
| Verifying | SSL and DNS being configured |
| Live | Your app is accessible |
Most deployments complete in under 60 seconds.
Environment Variables
For apps with sensitive data or external integrations:
- Go to Project Settings > Environment Variables
- Add your variables (API keys, secrets)
- Redeploy for changes to take effect
STRIPE_SECRET_KEY=sk_live_xxxxx
RESEND_API_KEY=re_xxxxx
See Environment Variables for details.
Preview Deployments
Test changes before going live:
- Click the dropdown next to Publish
- Select Preview Deploy
- Get a unique preview URL
- Share with team for review
- Promote to production when ready
Preview URLs are temporary and expire after 24 hours.
Rollback
If something goes wrong:
- Go to Deployments in project settings
- Find a previous working deployment
- Click Rollback
- Previous version is restored
INSTROC keeps your last 10 deployments.
Deployment Hooks
Automate actions on deployment:
- Pre-deploy - Run tests, lint code
- Post-deploy - Notify team, clear cache
Configure in Project Settings > Deployment Hooks.
Monitoring
After deployment, monitor your app:
Analytics
- Page views and unique visitors
- Popular pages
- Geographic distribution
Errors
- Frontend errors captured automatically
- Error details and stack traces
- User impact metrics
Access in Project Settings > Analytics.
Best Practices
Before Deploying
- Test all functionality in preview
- Check mobile responsiveness
- Verify all links work
- Test forms and interactions
Performance
- Optimize images before uploading
- Use lazy loading for below-fold content
- Enable caching for static assets
Security
- Never expose API keys in frontend code
- Use environment variables for secrets
- Enable HTTPS (automatic with INSTROC)