avian-flightdeck

Deploying Avian FlightDeck Wallet to Vercel

🚀 Quick Deploy

Deploy with Vercel

📋 Prerequisites

🔧 Deployment Steps

1. Connect Repository

# Install Vercel CLI (optional)
pnpm add -g vercel

# Login to Vercel
vercel login

# Deploy from project directory
vercel

2. Configure Environment Variables

In your Vercel dashboard, add these environment variables:

NODE_ENV=production
NEXT_TELEMETRY_DISABLED=1

3. Automatic Deployment

✅ What Works on Vercel

🔒 Security Features

The vercel.json configuration includes:

🌐 Custom Domain (Optional)

  1. Go to Vercel Dashboard → Your Project → Settings → Domains
  2. Add your custom domain (e.g., flightdeck.avn.network)
  3. Follow DNS configuration instructions
  4. SSL certificate is automatically provisioned

📱 PWA Features on Vercel

🔍 Build Verification

# Local build test (same as Vercel)
pnpm run build
pnpm run start

# Check PWA features
# Visit: chrome://flags/#bypass-app-banner-engagement-checks
# Enable and test "Add to Home Screen"

🚨 Production Considerations

Remove Development Features

Before production deployment:

  1. Security Review:
    • Verify all ElectrumX connections use WSS (secure WebSocket)
    • Test offline functionality
    • Verify PWA install flow

Performance Optimization

📊 Monitoring

Vercel provides:

🆘 Troubleshooting

Common Issues:

  1. PWA not installing:
    • Ensure HTTPS (automatic on Vercel)
    • Check manifest.json accessibility
    • Verify service worker registration
  2. Build failures:
    • Check Node.js version (18+ required)
    • Verify all dependencies in package.json
    • Review build logs in Vercel dashboard
  3. Storage issues:
    • IndexedDB works in all modern browsers
    • Private/incognito mode may limit storage
    • Check browser developer tools for errors

📞 Support