Problem: Notice on my screenshot it says "preview" so the new changes to the app are not showing up. We need to change it to "Production"

Today I was deploying a vite react app to cloudflare pages using wrangler. To make sure you are publishing your app for production, make sure to add the master branch.

My mistakes:

1. When prompted for the branch name, i selected none which by default with to HEAD

2. The second time, i selected main

3. Third time was the charm, I selected master with the following command:

wrangler pages deploy dist --branch=master

Afther that, it worked.

More information about this here: https://developers.cloudflare.com/pages/platform/preview-deployments/

TIP: if you need to know which branch you are on to publish, you can use the git branch command to show you which branch you are one, depending on main or master enter accordingly when prompted or change it with wrangler command.