Build real-time notifications · Exercise 07
Deploy the app
Deploy your app to Cloudflare and verify real-time progress on the live URL.
Paste this into your agent
Copied! Now paste it into your agent. No agent yet? Here's how to get one.
Deploy the app
In this exercise, you’re going to:
- deploy the Worker, Workflow, and Durable Object
- verify real-time progress, refresh recovery, and shared job links on the deployed app
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.