Posts

Showing posts from April, 2025

Deploy and Test Local Feature Branches Like a Pro with Vercel CLI - XM Cloud and Vercel

Image
Hello everyone! In this blog, we'll explore how to use the Vercel CLI to deploy local branch changes to a Vercel Preview environment for quick verification and validation. Ideally, we have a proper CI/CD pipeline in place to build and deploy changes to the appropriate Vercel environment. However, there are situations—such as urgent bug fixes—where you might need to quickly validate your changes without waiting for the full pipeline. In such cases, you can use the Vercel CLI to deploy your local changes directly, typically to a Preview environment. Even if something goes wrong, Vercel makes it easy to roll back: you can simply redeploy a previous build from the dashboard and restore the environment within minutes Let's begin by setting up the Vercel CLI on your local machine. At this point, you should have already created a branch from your main or develop branch and pulled the latest commits. You've made your changes and tested them locally — now you're ready to deplo...

CI/CD Made Easy: Bitbucket to XM Cloud and Vercel

Image
In this blog, we’ll explore how to integrate a Bitbucket CI/CD pipeline with XM Cloud. Recently, we worked with a client who used Bitbucket to manage their repositories, and we discovered that integrating XM Cloud with Bitbucket isn’t as straightforward as it is with Azure DevOps. So, let’s walk through how you can achieve this integration using Bitbucket. We will divide this blog in 2 parts. Part 1: Creating project in XM Cloud Part 2: Setting Up the CI/CD pipeline Creating project in XM Cloud When working with Bitbucket, you can use the XM Cloud portal to create a project; however, you won’t be able to link it directly to Bitbucket due to the lack of native integration. To set this up, you can follow these steps: Create a repository in Bitbucket by using import repository options. Clone the repository to your local machine. Push the entire XM Cloud project codebase to Bitbucket. Use the Sitecore CLI deploy app command to deploy the code from your local environment ...