Technologia

Vercel

Platforma deploymentowa dla frontendu. Git push → live. Preview deploys, edge network, analytics.

Czym jest Vercel?

Vercel to platforma do hostingu i deploymentu aplikacji webowych. Stworzona przez twórców Next.js, jest zoptymalizowana pod frameworki React, Next.js, Svelte, Nuxt i inne. Git push = automatyczny deploy na globalny edge network.

Vercel oferuje: preview deployments (każdy PR ma swój URL), serverless functions, edge functions, analytics, speed insights, image optimization i integracje z bazami danych (Vercel Postgres, KV, Blob).

Przykłady konfiguracji

vercel.json

vercel.json { "framework": "nextjs", "regions": ["cdg1"], "env": { "DATABASE_URL": "@database-url", "STRIPE_SECRET_KEY": "@stripe-secret" }, "headers": [ { "source": "/(.*)", "headers": [ { "key": "X-Frame-Options", "value": "DENY" } ] } ] }

Edge Function

Edge Runtime export const config = { runtime: 'edge' }; export default function handler(req: Request) { const country = req.headers.get('x-vercel-ip-country'); const city = req.headers.get('x-vercel-ip-city'); return new Response( JSON.stringify({ country, city, edge: true }), { headers: { 'Content-Type': 'application/json' } } ); }

Ocena kompetencji

DX (Developer Experience)
100%
Szybkość deploy
99%
Edge network
96%
Next.js integration
100%
Koszty (skala)
55%
Elastyczność
70%

Co potrafi Vercel

Git → Deploy

Push do main = produkcja. Push do brancha = preview URL. Zero konfiguracji.

Preview Deployments

Każdy PR ma swój URL. Testuj, udostępniaj klientom, zbieraj feedback.

Edge Functions

Serverless na edge. Geolokalizacja, A/B testing, personalizacja. ~0ms cold start.

Analytics

Web Vitals, Speed Insights, real user monitoring. Bez dodatkowego kodu.

Vercel Storage

Postgres, KV (Redis), Blob (S3). Managed databases zintegrowane z frameworkiem.

Image Optimization

Automatyczna optymalizacja, resize, WebP/AVIF. CDN cache. next/image.

Kiedy wybrać Vercel?

Idealny gdy: budujesz z Next.js, chcesz zero-config deploy, potrzebujesz preview URLs dla klientów, budujesz marketing site lub SaaS frontend.

Nie najlepszy gdy: potrzebujesz pełnej kontroli nad infrastrukturą (lepiej AWS/Docker), budujesz backend-heavy app (lepiej Railway/Fly.io), budżet jest ograniczony przy dużym ruchu.