Course lesson 46 · Dev Ops & Environments

Creating a Production Instance

One study unit · Read, recall, then practice · Original video 00:08:47

A production environment is created with its own storage and messaging resources, mirroring stage without sharing application data. The backend is deployed first, followed by a production-specific Vite build of the user application. A failed dashboard then reveals a separate requirement: provisioning a database does not create the application tables.

Primary source: course video 46 · Supplied English subtitles · 00:08:47.

Understand the idea

What the course does

  1. Copy the stage environment configuration and rename it production.
  2. Create production R2, D1, KV, main queue, and dead-letter queue resources and insert their identifiers.
  3. Give the workflow a production-specific name and deploy the data service.
  4. Configure the user application’s production database and backend service binding.
  5. Add a production build mode and production environment file, then deploy the frontend.
  6. Use Drizzle’s introspected SQL definitions to create the required tables in the new production D1 database and reload the application.

Watch for

Recall before revealing

Why can the production Worker deploy successfully while the dashboard fails?

Reveal the explanation

The Worker exists and runs, but queries fail until its separate production database has the expected schema.

Try it

Make a production-readiness checklist from this lesson’s resource and schema steps.

Check your result

It distinguishes creating resources, connecting bindings, building the correct frontend, and creating database tables.

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 →