Preview Environment is pulling main branch

I’ve set up preview enviornments and made a pull request. However, the preview deploy is using the main branch instead of the the branch from the PR avigoldman-patch-1.

Any thoughts on why that’d be happening?

I found the issue.

I had specified branch: main in the service definition in my render.yaml file. Once I removed it and let it use the default branch, it worked correctly.

Interestingly, this wasn’t an issue when I was using Pull Request Previews - it ignored the branch field .

1 Like