Prerequisites
Before deploying, ensure:- Your frontend project is in a Git repository (GitHub, GitLab, Bitbucket, etc.)
- Your repository is publicly accessible or you have proper access credentials
- Your project has a
package.jsonwith abuildscript - The build outputs to either
build/ordist/directory
Deployment Process
The deployment happens in several automated stages:Submit Repository URL
Send your repository URL to the deployment API endpoint.Response:Save the
id from the response - this is your unique deployment identifier.Repository Clone & Upload
The platform automatically:
- Clones your repository to a temporary directory
- Scans all files in your project
- Uploads files to S3 storage with your deployment ID
- Adds your deployment to the build queue
Build Process
Once in the queue, the deploy service:
- Downloads your project files from S3
- Creates a Docker container with Node.js 20
- Installs dependencies with
npm install - Runs
npm run build - Extracts the built files from the container
- Uploads the production build to S3
Complete Example
Here’s a full example deploying a React application:Updating Your Deployment
To deploy updates:- Push changes to your Git repository
- Submit a new deployment request with the same repository URL
- You’ll receive a new deployment ID
- The new version will be available at the new URL
Each deployment creates a new immutable version with a unique ID. This ensures you can roll back to previous versions if needed.
Repository Requirements
package.json Example
Yourpackage.json must include a build script:
Build Output Directory
The platform checks for built files in these locations (in order):/app/build- Used by Create React App, Gatsby/app/dist- Used by Vite, Vue CLI, many bundlers
Monitoring Deployment Status
While the platform doesn’t provide a status API endpoint yet, you can monitor deployment progress through:Server Logs
If you have access to the platform logs, look for:Redis Queue
Check the build queue status:0 means the queue is empty and your build should be processed or complete.
Deployment Timeline
Typical deployment times:| Stage | Duration |
|---|---|
| API Response | < 1 second |
| Repository Clone | 5-30 seconds |
| S3 Upload | 10-60 seconds |
| Queue Wait | 0-300 seconds |
| Docker Build | 60-300 seconds |
| Final Upload | 10-60 seconds |
| Total | 2-12 minutes |
Queue wait time depends on how many deployments are ahead of yours. Builds are processed sequentially.
Best Practices
Optimize Build Times
- Use
.dockerignoreto exclude unnecessary files - Keep dependencies minimal
- Use build caching where possible
Repository Organization
- Keep your root
package.jsonwith build scripts - Ensure all dependencies are in
package.json, not justdevDependencies - Test your build locally with
npm run buildbefore deploying
Version Control
- Tag releases in Git for easy reference
- Keep track of deployment IDs for each version
- Document which deployment ID is currently in production
Next Steps
Troubleshooting
Learn how to diagnose and fix common deployment issues
API Reference
Explore all available API endpoints