Back to Documentation
Deployment

Manual Upload

Deploy your site by uploading a ZIP file or dragging and dropping your build folder directly.

1Prepare Your Build

Before uploading, build your project locally:

# Build your project
npm run build

# Your output folder (varies by framework)
# React: build/
# Vue: dist/
# Next.js: out/ (static export)
# Astro: dist/

Make sure your build folder contains an index.html file at the root.

2Upload via Dashboard

Upload your build folder through the dashboard:

  1. Click "New Site" in your dashboard
  2. Select "Upload Files"
  3. Drag and drop your build folder, or click to browse
  4. You can also upload a ZIP file containing your build
  5. Click "Deploy"

Tip: Maximum upload size is 100MB for free plans, 500MB for paid plans.

3Upload via CLI

Use the Berican CLI for faster uploads:

# Install CLI
npm install -g @berican/cli

# Login
berican login

# Deploy
berican deploy ./dist

The CLI compresses your files for faster upload and shows real-time progress.

4Upload via API

Automate uploads using the API:

# Create a deployment
curl -X POST https://api.bericanlabs.com/v1/sites/SITE_ID/deployments \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@build.zip"

5Update Existing Site

To update an existing site with new files:

  1. Go to your site's dashboard
  2. Click "Deployments"
  3. Click "New Deployment"
  4. Upload your updated build folder
  5. The new version goes live instantly

Previous versions are saved for instant rollback if needed.