Skip to content
Tutorials Center
My learning

Topics

Vercel and Netlify Tutorial

Learn Vercel and Netlify step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 Modern Web Hosting and the Jamstack Learn what Vercel and Netlify actually do: build your site from Git, put the result on a global CDN, and run small functions on demand. Start here before your first deploy.
  2. 2 Vercel and Netlify Compared Compare Vercel and Netlify: shared concepts, vocabulary that differs, config files, function folders, and how to choose. A translation table you can keep open while you work.
  3. 3 Your First Deploy on Vercel and Netlify Deploy a site three ways on Vercel and Netlify: import a Git repository, drag a folder, or use the CLI. Learn what each screen asks and what a deployment URL means.
  4. 4 Static Sites, Frameworks and Presets See how Vercel and Netlify detect frameworks, which build command and output folder each one uses, and how static, SSR and hybrid sites are deployed differently.
  5. 5 Vercel and Netlify CLI Basics Learn the commands you use daily in the Vercel CLI and Netlify CLI: login, link, dev, deploy, env, logs and rollback, with a side-by-side cheat sheet and a command parser.

Deployments and Git Integration

  1. 6 Git Integration and Automatic Deploys Understand how Vercel and Netlify connect to GitHub, GitLab and Bitbucket, what a push triggers, which permissions are needed, and how to pause or limit automatic builds.
  2. 7 Production, Branch and Preview Deploys Learn how Vercel and Netlify separate production from preview and branch deploys, how their URLs are formed, what changes between them, and how to protect the production branch.
  3. 8 Deploy Anatomy, Logs and Rollbacks Learn the phases of a deploy, how to read build logs and fix common failures, and how to undo a bad release on Vercel and Netlify with instant rollback and deploy hooks.
  4. 9 Monorepos and Ignored Builds Deploy several apps from one repository: set the root directory, use ignore commands to skip unrelated builds, and share packages with workspaces on Vercel and Netlify.

Build Settings and Environments

  1. 10 Build Settings: Commands, Output and Root Master the build settings that every project has: install command, build command, output directory, base directory and ignore rules, with where each lives and who wins when they conflict.
  2. 11 Environment Variables and Secrets Set and scope environment variables for production, preview and development on Vercel and Netlify. Learn build-time versus runtime access, public prefixes and how to avoid leaking secrets.
  3. 12 Node Versions and Package Managers Pin the Node.js version and choose npm, yarn, pnpm or bun for builds on Vercel and Netlify. Fix works-on-my-machine failures with .nvmrc, engines, lockfiles and corepack.
  4. 13 vercel.json and netlify.toml Configuration Files Put your deployment settings in code: the structure of vercel.json and netlify.toml, per-context overrides, headers, redirects and functions, with side-by-side examples.
  5. 14 Build Caching, Plugins and Faster Builds Cut build time on Vercel and Netlify: how dependency and framework caches work, what invalidates them, Netlify build plugins, and how to measure and trim slow builds.

Serverless and Edge Functions

  1. 15 Serverless Functions: The Basics Learn what serverless functions are, how they start and stop, why they must be stateless, what cold starts are, and how requests flow through functions on Vercel and Netlify.
  2. 16 Netlify Functions Write Netlify Functions with the modern Request and Response signature: file layout, custom paths, the context object, environment variables, local testing with netlify dev and error handling.
  3. 17 Vercel Functions Write Vercel Functions in the api folder or as framework route handlers: method exports, dynamic routes, configuration for duration and region, streaming and testing with vercel dev.
  4. 18 Edge Functions and Middleware Run code at the edge, close to visitors: Netlify Edge Functions on Deno, Vercel Routing Middleware, geolocation, redirects, A/B tests and auth checks, and when to avoid the edge.
  5. 19 Scheduled and Background Functions Run work on a schedule or after the response: Netlify Scheduled and Background Functions, Vercel Cron Jobs, cron expressions, securing cron endpoints and making jobs safe to retry.

Domains, HTTPS and Redirects

  1. 20 Custom Domains and DNS Connect your own domain to Vercel or Netlify: apex versus www, A, CNAME and ALIAS records, nameserver delegation, propagation and how to debug a domain that will not verify.
  2. 21 HTTPS and Certificates How automatic HTTPS works on Vercel and Netlify: Let's Encrypt style certificates, wildcard and custom certificates, HSTS, renewal and fixing mixed content and certificate errors.
  3. 22 Redirects and Rewrites Write redirect and rewrite rules for Vercel (vercel.json) and Netlify (_redirects and netlify.toml): status codes, splats, SPA fallbacks, proxying, country rules and rule order.
  4. 23 Response Headers and Security Set custom HTTP response headers on Vercel and Netlify: Content-Security-Policy, HSTS, X-Content-Type-Options, CORS and cache headers, using vercel.json, _headers and netlify.toml.

Storage and Data

  1. 24 Object Storage and Blobs Store uploads and generated files with Vercel Blob and Netlify Blobs: keys, content types, public versus private access, size limits, listing and cleaning up, with a runnable stand-in.
  2. 25 Edge Config and Key-Value Stores Use Vercel Edge Config for tiny read-heavy settings, Redis key-value stores for counters and caches, and Netlify Blobs as a key-value layer. Includes TTL, rate limiting and feature-flag stand-ins.
  3. 26 Databases from Serverless Connect serverless functions to Postgres and other databases: connection pooling, HTTP drivers, region placement, marketplace integrations, migrations and avoiding connection exhaustion.
  4. 27 Forms and Submissions Handle contact forms without a server: Netlify Forms with data-netlify, spam protection, notifications and webhooks, and the Vercel approach with serverless functions and validation.

Previews and Teams

  1. 28 Preview Deployments Every pull request and branch gets its own live URL. Learn how preview and deploy-preview URLs work, comments and review tools, protecting previews, branch subdomains and preview data safety.
  2. 29 Teams and Permissions Organize work with teams on Vercel and Netlify: roles, inviting members, Git provider access, protecting production, audit logs, SSO and tokens for automation, with a role-check model.
  3. 30 Rollbacks and Promotions Undo a bad release in seconds: how immutable deployments enable instant rollback on Vercel and Netlify, promoting a preview to production, locking deploys and safe database changes.

Performance and Limits

  1. 31 Caching and the CDN How the edge network caches your site: Cache-Control, s-maxage and stale-while-revalidate, immutable hashed assets, ISR and on-demand revalidation, cache invalidation and purging.
  2. 32 Images and Web Vitals Make sites fast: automatic image optimization and resizing on Vercel and Netlify, srcset and modern formats, lazy loading, and measuring LCP, INP and CLS with Speed Insights and Lighthouse.
  3. 33 Limits, Quotas and Costs Understand the limits that matter on Vercel and Netlify: bandwidth, build minutes, function duration and memory, request sizes, and how to estimate and control your bill with spend limits.

Projects and Practice

  1. 34 Project: A Portfolio Site Build and ship a portfolio site step by step: static pages, a contact form, redirects and headers, a custom domain, preview reviews and a pre-launch checklist for Vercel or Netlify.
  2. 35 Project: An API and Database App Plan a full-stack link shortener on Vercel or Netlify: serverless API routes, a Postgres database, KV rate limiting, environment separation for previews, tests and rollout, with runnable stand-ins.
  3. 36 Project: Deploying a Monorepo Deploy several apps from one repository: root directory settings, workspaces, ignored builds, shared packages, per-app environment variables, build caching and a changed-files detector.
  4. 37 Practice: Debugging Failed Deploys A practical troubleshooting guide: read build logs, fix missing dependencies, Node versions, case-sensitive paths, environment variables, function errors, 404s and 5xx responses, plus a log classifier.