Course lesson 47 · Dev Ops & Environments

Auto Deployments

One study unit · Read, recall, then practice · Original video 00:15:50

Cloudflare’s repository-connected builds automate the user application’s stage and production deployments. A push to the stage branch triggers its stage command, and merging stage into main triggers production. The monorepo build must install dependencies, build the shared data package, and then deploy the selected application; the lesson uses build failures to uncover missing dependencies and missing build-time variables.

Primary source: course video 47 · Supplied English subtitles · 00:15:50.

Understand the idea

What the course does

  1. Grant the Cloudflare integration access to the specific course repository and push a stage branch.
  2. Configure the stage user application to build from that branch using a root deployment script.
  3. Add dependency installation after the first build reports missing node_modules.
  4. Declare TypeScript as a workspace-root development dependency after the next build cannot find tsc.
  5. Configure production to build from main and test promotion through a pull request merge.
  6. Set the frontend host and Cloudflare environment as build variables, rebuild, and verify the dashboard.

Watch for

Recall before revealing

Why did a locally successful build fail when tsc was unavailable in Cloudflare?

Reveal the explanation

The local machine supplied TypeScript globally, while the clean build needed it declared and installed as a project dependency.

Try it

Explain the full command chain for a production frontend deployment from the monorepo root.

Check your result

You include installation, shared-package build, application filtering, production build, and deployment.

Practice prompts and answer checks are added teaching material. Answer from memory first, then compare and explain any difference.

Rewatch only what you need

Open this lesson in your original course library and seek to the times below. Videos are not hosted on this site.

Companion primary documentation: Wrangler environments. For recorded API names, commands, limits, and prices, check the version you use.

← Previous   Next →