Course lesson 05 · Building on Cloudflare Workers

Framework bundling, Entrypoints, & Env

One study unit · Read, recall, then practice · Original video 00:22:39

A framework becomes runnable on Workers when its build produces static assets and a compatible server entrypoint. The lesson inspects this boundary using a basic fetch handler, Hono, and a Next.js/OpenNext example, then explains how runtime environment bindings differ from copied Node.js configuration patterns. Understanding the build output helps debug both deployment problems and missing secrets.

Primary source: course video 05 · Supplied English subtitles · 00:22:39.

Understand the idea

What the course does

  1. Inspect a minimal fetch handler and see how Hono exposes a compatible handler.
  2. Compare static chunks and the generated server Worker in the framework’s build output.
  3. Use browser network inspection and Worker logs to distinguish asset delivery from server execution.
  4. Define a local development secret, regenerate Cloudflare environment types, and access it through the demonstrated runtime context.
  5. Configure the matching deployed secret through the Worker dashboard or CLI; inspect the shared Secrets Store alternative for several Workers.

Watch for

Recall before revealing

Why can copying a database-client example from Node documentation fail in a Worker project?

Reveal the explanation

The example may assume process.env or initialization timing that differs from the project’s Worker runtime and framework adapter.

Try it

Find your course app’s static output, server entrypoint, local secret configuration, and deployed secret configuration.

Check your result

You can explain when each value or file is used and identify how server-only configuration reaches the request handler.

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: Cloudflare Workers runtime APIs. For recorded API names, commands, limits, and prices, check the version you use.

← Previous   Next →