Showing posts with label jss. Show all posts
Showing posts with label jss. Show all posts

Friday, January 14, 2022

How to add new service Principal - Sitecore Next.jss (Headless) Deployment to web apps

I was using the Azure PaasS - so first we need to raise the Sitecore support ticket to generate the Service Principal.

Here are the steps - Login into the Sitecore Portal and raise the ticket under 

Make sure that this new service principal should also have a shared drive access/ blob storage so you can upload the default artifacts like Jss and SXA packages to pull and upload to the new vanila setup

Search for the option Update Access to Azure - Service Principal

This is basically automated process so the moment you raise the ticket, an automated script will be excuted and create the service principal for you.

Now, the next step is to login into the Azure portal and create a new connection





Application (client) ID: is Service Principal Id



Wednesday, January 12, 2022

Publishing build artifacts failed with an error: Not found PathtoPublish: D:\a\1\s\Website - Sitecore Next.jss (Headless) Deployment to web apps

 I got another error which is Publishing build artifacts failed with an error: Not found PathtoPublish: D:\a\1\s\Website


I found the issue was related to the correct path configuration in copy and upload azure pipeline

Copy step should have the correct source path/folder 

and destination path should have syntax like $(Build.ArtifactStagingDirectory)\Sitecore

and the publish artifacts should have path like this 

$(Build.ArtifactStagingDirectory)\Sitecore\cm

Copy pipeline


Upload Pipeline




After the correct configuration, I was able to resolve the issue


Tuesday, January 4, 2022

Couldn't find a debug log in the cache or working directory - Sitecore Next.jss (Headless) Deployment to web apps

 Recently I got this error in Azure pipeline


Although, this pipeline was working before, I made a few changes in the producation transformation file and basically it's not recongnizing those keywords

on my local I got the below eroror

The PUBLIC_URL environment variable '#{PUBLIC_URL}#' is not a valid URL.

to fix that, I have moved all my transformatio file into a new folder and replaced during the release pipelines.