The following command didn't upload my assets as production on the pages site. It was always uploaded as preview.
There is no wrangler.toml in my project
npx wrangler pages deploy --project-name=$project_name ./dist/apps/player2
The following didn't work:
- using --env=production
- using --branch=production
What worked is creating the project with production branch set as the same branch I was going to upload later.