It is a bit unclear, what you want to achieve. First, as Richard mentioned, keep in mind the xmCloud deployment is different than a typical JSS application. Because both CM and rendering hosts are running inside Kubernetes containers, and the container images are immutable. You need to use Sitecore CLI for deployment, which basically creates a deployment for xmcloud Deploy App: https://deploy.sitecorecloud.io/.
If you want to use Sitecore Pages locally, your CM and Rendering host should be up and running, you need to set local storage entries, check it:
If you do not need to edit and just want to check your front-end code against the xmcloud(CM) or experience edge, then first, make sure your solution is deployed using Sitecore CLI/xmCloud Deploy app. Then you need to set the API endpoints, as Richard mentioned.
.env file, from the root of your rendering, set the correct endpoint:
Connecting to xmCloud:
SITECORE_API_KEY=[Item ID of your API key in Sitecore]
Connecting to Edge:
For local development, there is no need for deployment to the xmcloud. If you have any specific reason to do so, can you please provide it here?