
In this blog post we will Link the XM Cloud to Vercel. The XM Cloud site will be hosted in Vercel by Seting up the host
In this blog post we saw how to setup the Vercel Project manually but this whole process can be automated by Creating and linking the host.
Configure Hosting Connection
Login to XM Cloud and navigate to Connections –> Hosting tab

Click on Create connection –> Vercel
Login to Vercel and add Integration

Select the account to connect. In my case its personal account

Select the all projects to integrate, dont selecy any specific project or you will get error. See errors section-

Confirm and Add Integration-


A new Hosting connection is created with the name-

Setup Hosting
Navigate to Projects ==> Environments ==> Sites Tab

Link Vercel Site (Connection been already created)
You can create Hosting connection from here too.

Click “Create and link”
Now you can see the Site is linked to host i.e. Vercel.

Once the Site is linked you should be able to see the project in Vercel
Login to vercel and see the newly created project and deployment in-progress.

In few minutes the deployment should be completed

Click on the domains and should see the Site-

Errors-
Vercel installation will require ‘All Projects’ access. Please change the access on the Vercel installation

Resolution–
Delete any exisitng Hosting Connection and re-create the hosting with Integration to be allowed to all projects.
