How to deploy to preview

This is how I tried to deploy but it still gets deployed to prod: wrangler pages deploy --env preview --project-name demo ...
Was this page helpful?