Deployment Architecture Comparison

CI/CD Pipeline with Vercel vs Traditional FTP Deployment

โ–ฒ GitHub Actions + Vercel

Modern CI/CD Pipeline

๐Ÿ“คPush to GitHub
Developer pushes code to main branch
โœ…Lint & Type Check
svelte-check
๐ŸงชUnit Tests
Vitest + Coverage
๐ŸŽญE2E Tests
Playwright: Chromium, Firefox, WebKit
๐Ÿ”จBuild Application
SvelteKit + Vercel Adapter
๐Ÿš€Deploy to Vercel
Edge CDN, SSR, Serverless Functions
๐ŸŒLive at your-app.vercel.app
Global edge network, instant rollback

Trade-offs

โœ“ Advantages
  • Auto-deploy on push
  • Preview URLs per PR
  • Full SSR support
  • Serverless API routes
  • Instant rollbacks
  • Global CDN
  • Zero downtime
โœ— Limitations
  • Vendor lock-in
  • Learning curve
  • Requires GitHub secrets
  • Free tier limits

๐Ÿ“ GitHub Actions + FTP

Traditional Static Deployment

๐Ÿ“คPush to GitHub
Developer pushes code to main branch
โœ…Lint & Type Check
svelte-check
๐ŸงชUnit Tests
Vitest
๐Ÿ”จBuild Static HTML
SvelteKit + Static Adapter
๐Ÿ“คFTP Upload
Transfer files to web server
๐ŸŒLive at www.yourdomain.com
Traditional web hosting
โญ๏ธNo E2E in example
Can be added if needed

Trade-offs

โœ“ Advantages
  • Simple setup
  • Works with any host
  • No vendor lock-in
  • Full control
  • Low learning curve
  • Manual upload option
โœ— Limitations
  • Static files only
  • No SSR support
  • No API routes
  • Manual rollbacks
  • No preview URLs
  • Slower uploads
  • Possible downtime

Feature Comparison

Detailed breakdown of capabilities

Feature GitHub + Vercel GitHub + FTP
Setup Complexity Medium Low
Deployment Speed ~30 seconds 1-5 minutes
Auto-Deploy on Push Yes Yes (with Actions)
Preview Deployments Yes (per PR) No
Rollback Instant (1-click) Manual
Server-Side Rendering Full Support Not Supported
API Routes / Functions Serverless Not Available
SSL/HTTPS Automatic Host Dependent
CDN Global Edge Manual Setup
Custom Domain Easy Config DNS Config
Cost (30 days) Free Tier $0-20/month
Monitoring Built-in External Tools
Vendor Lock-in Moderate None

Technology Stack

Tools and services used in each pipeline

๐ŸŽจ Frontend Framework

Svelte 5 SvelteKit 2 TypeScript Vite

๐Ÿงช Testing

Vitest Playwright Testing Library Coverage V8

โš™๏ธ CI/CD Pipeline

GitHub Actions Node.js 20 npm

โ–ฒ Vercel Deployment

adapter-vercel Edge Network Serverless

๐Ÿ“ FTP Deployment

adapter-static FTP Deploy Action Static HTML

๐Ÿ” Quality Checks

svelte-check TypeScript ESLint

Which Pipeline Should You Choose?

Need server-side rendering (SSR)?
โ†’ Vercel
Need API routes or serverless functions?
โ†’ Vercel
Want preview deployments for PRs?
โ†’ Vercel
Working in a team with code reviews?
โ†’ Vercel
Already have traditional web hosting?
โ†’ FTP
App is fully static with no dynamic features?
โ†’ FTP
Organization requires on-premise hosting?
โ†’ FTP
Prefer simple, familiar deployment?
โ†’ FTP