liveBook · Manning

Deployment pipeline

As explained in Build AI-Enhanced Web Apps

An automated software delivery workflow that integrates code changes and continuously builds, tests, and deploys them.

A deployment pipeline automates the path from a code change to a deployed application. Vercel can connect to Git and use its build and deployment tools for this workflow. Automation belongs alongside secret management, monitoring, and a deployment strategy that limits downtime; it does not replace them. section 9.6.3 section 9.6.2

For a Vercel deployment:

  • Confirm the application builds locally, then create a Vercel account and project. section 9.6.3
  • Add required environment variables in the Vercel dashboard rather than committing secrets to version control. The example application needs credentials for Google AI, Upstash Redis, and Clerk. section 9.6.3 section 9.6.2
  • Check the build configuration, including the Node.js version used for the build and serverless functions, and use Vercel’s Git integration to automate subsequent builds and deployments. section 9.6.3
  • After deployment, inspect monitoring and logs for problems. Consider blue-green, canary, or rolling updates where minimizing downtime matters. section 9.6.3 section 9.6.2

Manual deployment and troubleshooting

The Vercel CLI offers a separate way to deploy: install it with `npm install -g vercel`, then run `vercel`. A successful run provides a preview domain and an option to promote to production with `vercel --prod`. For a failed deployment, inspect the dashboard or use `vercel logs`. These commands demonstrate deployment and diagnosis; they do not by themselves define an automated test stage. section 9.6.3

Figure 9.8 Vercel dashboard build configuration settings screen showing where we set the Node.js version to 18.x for both the build step and serverless functions

The build-settings screen shows Node.js 18.x selected for both the build step and serverless functions. section 9.6.3

How Build AI-Enhanced Web Apps covers it

How deep it goes
Provides a Vercel setup and troubleshooting path, but does not specify a test stage or pipeline configuration file.
Examples
Uses a Vercel project, provider credentials, Node.js build settings, CLI deployment, preview output, and failed-deployment logs.
What it assumes
Assumes an application that can build locally and has the credentials needed by its external services.
What you can do after
Operate/configure it with Vercel’s Git integration, environment settings, build tools, and deployment logs.
How it connects
Connects Git integration, environment variables, build configuration, monitoring, logging, and downtime-reduction strategies.

Also explained in

Compare how 30 books explain deployment pipeline →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI-Enhanced Web Apps. The section links point to the parts of the book it draws on.