Skip to main content

Vercel Deployment

Deploy the SHIELD frontend to Vercel’s edge network.

Prerequisites

  • Vercel account
  • Project connected to GitHub
  • Environment variables ready

Deployment Steps

1. Connect Repository

  1. Go to Vercel Dashboard
  2. Click “Add New Project”
  3. Import your SHIELD repository
  4. Select the frontend directory as root

2. Configure Project

Build Settings:

3. Environment Variables

Add in Project Settings → Environment Variables:
Mark as Production for main deployment.

4. Deploy

Click “Deploy”. Vercel will:
  1. Install dependencies
  2. Run build
  3. Deploy to edge

5. Custom Domain

  1. Go to Project Settings → Domains
  2. Add app.shieldhq.xyz
  3. Configure DNS:
    • Type: CNAME
    • Name: app
    • Value: cname.vercel-dns.com

6. Preview Deployments

Every PR gets a preview deployment at:

Production Checklist

  • Environment variables set
  • Database accessible from Vercel IPs
  • Contract addresses correct
  • Custom domain configured
  • Analytics enabled
  • Rate limiting configured
  • Security headers set

Vercel.json Configuration

Create frontend/vercel.json:

Monitoring

Enable in Vercel Dashboard:
  • Analytics
  • Speed Insights
  • Logs
  • Alerts

Troubleshooting