Course lesson 45 · Dev Ops & Environments

Create a specific stage deployment

One study unit · Read, recall, then practice · Original video 00:10:44

The existing deployment is reorganized into an explicitly named stage environment, preparing for a separate production copy. Resource bindings move under the stage section of each Wrangler configuration, and deployment and type-generation commands must select that environment. The lesson exposes practical migration issues: Worker names change, queue consumers conflict, Vite selects environments differently, and service bindings must follow the renamed backend.

Primary source: course video 45 · Supplied English subtitles · 00:10:44.

Understand the idea

What the course does

  1. Outline a branch-based flow in which stage changes are verified before merging to the production branch.
  2. Move data-service bindings and environment-specific settings into the stage environment.
  3. Add stage selection to its deployment and environment-type generation scripts.
  4. Resolve the existing queue-consumer conflict caused by the newly named stage Worker.
  5. Repeat environment organization for the user application, selecting stage through the Vite-related environment setting.
  6. Update the backend service binding and browser base host to the new stage names, then verify the application.

Watch for

Recall before revealing

Why does renaming the backend deployment require a frontend configuration change?

Reveal the explanation

Its service binding targets the deployed service name, which now includes the stage suffix.

Try it

List the names and settings that must agree for a stage frontend to reach its stage backend.

Check your result

You identify the selected environment, deployed backend name, service binding target, and browser base host.

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 →