Build real-time notifications · Exercise 07

Deploy the app

Deploy your app to Cloudflare and verify real-time progress on the live URL.

Deploy the app

In this exercise, you’re going to:

Authenticate and deploy

First, you need to sign in to your Cloudflare account using the cf CLIby running the following command completing the steps in the browser:

Terminalpnpm exec cf auth login

If you’re already logged in, you can confirm which account you’re logged in as by running:

Terminalpnpm exec cf auth whoami

Then, run the local checks:

Terminalpnpm typecheck
pnpm lint
pnpm build

Once the checks pass and you have confirmed the account, deploy from your working app directory:

Terminalpnpm deploy

Open the deployment URL printed by the CLI.

Check the result

With the project deployed, you can now test it. On the deployed page, start a new job and check that you see the experience you had when running locally.

  • real-time updates showing for active jobs
  • refreshing the pages or opening in a new tab loads the latest status

Your app is now deployed, with the Worker starting jobs, the Workflow publishing progress through the Durable Object, and the browser receiving updates over WebSockets.