Steps to Consider: Connect JSS Next.js Project with Sitecore XM Cloud
In this blog, I will show how you can connect your local JSS Next.js App with XM Cloud Deploy. If you are wondering how to setup NextJs App with XM Cloud then do visit this blog . Please note, this blog refers to some steps which I have done previously while setting up my site on the portal. I would suggest you to just a have look into steps so that you can understand the further stated steps better. Since we will be running our local instance with XM Cloud, it would be better to create any component, lets say XM Cloud Component using component builder, and bind on home page to confirm and test the changes. If you are seeking to know How to create a component in XM Cloud then follow this guide . Prerequisites You must have cloned your NextJs app on your machine. Nodejs/Git must be installed. Any code editor, Visual Studio Code preferred. Site must be created on XM Cloud Portal. Exploring XM Cloud Deploy Lets begin with grabbing the environment variables which will b...